HostOnNet Blog

DNS Server file

Looking for Linux Server Admin or WordPress Expert? We can help.

In FreeBSD and Linux servers, DNS server used by the server is set in /etc/resolv.conf

freebsd# cat /etc/resolv.conf
search localdomain
nameserver 192.168.199.2
freebsd#

In this case, when you request a web resource from server, server will use 192.168.199.2 as DNS server to resolve the domain name.


Posted in FreeBSD. Bookmark the permalink.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.