Monday, May 7, 2007

Seeing and changing your DNS servers

To see which dns server that as been assingned to your by dhcp or inputed manualy, just do:

cat /etc/resolv.conf

To alter (and also see) your dns servers you can always edit /etc/resolv.conf using a text editor like vi or gedit or any other for vi do the following:

# vi /etc/resolv.conf

for gedit the following:

# gedit /etc/resolv.conf

No comments: