how to setup change edit DNS nameservers Linux Command Shell

RegisterLogin
how to setup change edit DNS nameservers Linux Command Shell
Post Description: how to setup change edit DNS nameservers Linux Command Shell
Tags: how, to, setup, change, edit, DNS, nameservers, Linux, Command, Shell
This Post Was Posted On Feb 29, 2008 By web hosting #2174
the file to chanage or edit your nameservers in debian is this one:

/etc/resolv.conf

for example if i wanted to change my nameservers for my server to be these two:
206.12.23.13
206.12.24.13

i would send this command:
nano etc/resolv.conf


now i would make change the contents to look something like this:

search
nameserver 206.12.23.13
nameserver 206.12.24.13


now save the file and restart your network

/etc/init.d/networking restart


if you need to change hostname, you can follow this link:

Next: Set Hostname
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2012 Webune Forums - Tue Dec 18, 2012 5:25 am
Powered by: Webune Forums V3