/etc/resolv.conf dictates how FreeBSD’s resolver accesses the Internet Domain Name System (DNS).
The most common entries to resolv.conf are:
nameserver The IP address of a name server the resolver should query. The servers are queried in the order listed with a maximum of three.
search Search list for hostname lookup. This is normally determined by the domain of the local hostname.
domain The local domain name.
A typical resolv.conf:
Note: Only one of the search and domain options should be used.
If you are using DHCP, dhclient(8) usually rewrites resolv.conf with information received from the DHCP server.