How To Check Your Primary and Secondary DNS Servers in Linux Shell

Mobile
feeds
Welcome Login | Register


How To Check Your Primary and Secondary DNS Servers in Linux Shell
How To Check Your Primary and Secondary DNS Servers in Linux Shell This page contains information about How To Check Your Primary and Secondary DNS Servers in Linux Shell Here you can also give your thought about the subject of How To Check Your Primary and Secondary DNS Servers in Linux Shell


Main List


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
Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments