HostOnNet Blog

DNS Server file

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.