Tag Archives: resolv.conf

FreeBSD – Define or add (extra) nameservers

In FreeBSD there is a file named ‘resolv.conf’ where the dns servers are located.

If you want to add an extra DNS server you have to edit this file.

Log in with root.
# ee /etc/resolv.conf

You will probably see something like:
domain yourdomain.local
nameserver 192.168.1.1

To add an extra nameserver, all you have to do is add an extra nameserver.
Your file will look like this:

domain yourdomain.local
nameserver 192.168.1.1
nameserver 8.8.8.8