MyBB Community Forums

Full Version: (VPS) Setup nameservers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm new to server setup and management.

How can i setup nameservers for the default domain?
I have a single ip.
System: Debian 32bit, fresh install.

Many thanks! Angel
Easiest way is to add them in /etc/resolv.conf in the following format:

nameserver xxx.xxx.xxx.xxx

HOWEVER, if you have resolvconf installed in your system then it is recommended not to make the changes in resolv.conf since it will be overwritten. You'll know resolvconf is installed when the resolv.conf file will tell you not to edit it by hand, also /etc/resolv.conf will be sym linked to /etc/resolvconf/run/resolv.conf

In this case you'll have to edit /etc/network/interfaces and add the nameservers to the interface.

dns-nameservers xx.xx.xx.xx yy.yy.yy.yy

This should come right after the gateway line. Multiple servers should be listed on the same line separated with a space.
Thank you so much for this!
Now i go and test it.

Thanks again!
Forgot to mention, you may need to restart networking after changing them.

/etc/init.d/networking restart
Ok. Thanks.