How To Setup Change Edit DNS Nameservers Linux Command Shell
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:

