- Forums
- Linux Systems
- How To Setup Change Edit DNS Nameservers Linux Command Shell
This Page Contains information about How To Setup Change Edit DNS Nameservers Linux Command Shell By wallpaperama in category Linux Systems with 6 Replies. [2953], Last Updated: Sat May 18, 2024
wallpaperama
Sat Jul 07, 2007
6 Comments
34183 Visits
the file to chanage or edit your nameservers in debian is this one:
cat /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
https://www.wallpaperama.com/forums/how-to-setup-change-edit-dns-nameservers-linux-command-shell-t1679.html