Automatic forwarder configuration
Since FreeBSD 7.3-RELEASE, it has been possible to automatically setup a forwarding nameserver simply by adding
to /etc/rc.conf. This allows you to utilize a local resolver for better performance, and decreased network traffic while still relying on the benefits of your local network resolver.
When named is started, a forwarder configuration file is generated by using the the contents of /etc/resolv.conf
Modify /etc/resolv.conf so that the first nameserver queried is 127.0.0.1 which will be the caching nameserver running on the local system.
search example.com nameserver 127.0.0.1 nameserver 18.104.22.168 nameserver 22.214.171.124 nameserver 126.96.36.199
The file will be saved as /etc/namedb/auto_forward.conf. Make sure this file is included by uncommenting the following in in /etc/named.conf