How To Check Your Primary and Secondary DNS Servers in Linux Shell
How To Check Your Primary and Secondary DNS Servers in Linux Shell
By: Travis
Courtesy: Webune.com
I will be using Red Hat for this demonstration:
at the shell typ:
cat /etc/resolv.conf |
This command will display your Primary and Secondary Server Ip Address. It will look like this:
| ; generated by /sbin/dhclient-script search wallpaperama.com nameserver 210.92.171.7 nameserver 210.92.179.16 |
If you want to change it, you can do the following command to edit the file (or you can use vi or other favorite editor. if you are a beginner like me, i would start with nano)
| nano /etc/resolve.conf |
*disclaimer: I take no responsability for any loss or damages to your server/data. Always make backups before you start doing something like this, no matter is you are and expert or a beginner.
Posted on: Apr 08, 2006
|
|
|