- Forums
- Linux Hosting
- How To Change Nameservers Linux
This Page Will Show You How To Configure And Set The Dns Name Servers In Your Linux Computer Server Using The Command Form The Shell If You Are Using Ssh Connection this steps are easy for changing and setting the configs [1329], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Mon Jan 11, 2010
0 Comments
526 Visits
if you just got a dedicated server from Webune, its helpful to set your DNS name servers on your Linux servers.
this short tutorial will show you about setting the name servers on your linux configuration.
to setup or change you DNS nameservers, all you have to do is edit the resolv.conf file. first login as super user
if you are a Webune Customer, and dont remember your root or superuser password, please contact us.
once you have logged int as superuser you can proceed by executing this command in your ssh:
SHELL COMMAND:
nano /etc/resolv.conf
NOTE: i am using nano to edit this file, but you can use vi if you wanted to. nano is much user friendly if you are beginner. if you are a pro, then vi would work also.
when you send the command above, you should see someting like this:
search myhost.example.com
nameserver 192.168.1.100
nameserver 192.168.2.100as you can see, the first nameserver has an ip address of 192.168.1.100 and my second nameserver has 192.168.2.100 - here you can change the ip address to whatever nameserver you want
hope that helps