Everything appears to be working OK with DNS, apart from one thing. We still have to tell the system to use it! This is very easy to do, and we have already carried this out a number of times. Chapter 12, “Naming Services and NIS,” contains more details about this.
In short, we enable DNS by updating the name service switch file, /etc/nsswitch.conf. We do this by adding the “dns” token to the “hosts” entry as shown here:
antimony# grep hosts /etc/nsswitch.conf hosts: files dns antimony#
Simple—we've added “dns” as the final service so any host name lookups will first try to resolve the host name by looking in the local /etc files before trying DNS. Once we've done this, we should be able to check that it's working using any ...