|This option may be used to delete A and NS records which reference names in domains outside the domain specified in the closest preceeding SOA record.|
|-Verbose||This option may be used to see what dns-hosts deciphers each resource record as.|
|-Help||This option may be used to get more information about how to used th dns-hosts program.|
|-VERSion||This option may be used to see what version of the dns-hosts program is running.|
This option may be used to set the search path for include files.
The idea is that you have all of the information concerning each computer in the one file. This makes it less likely that something will be omitted, and simpler to change if the name or IP address changes.
Given a database file called example.com and which contains the following textYou can generate the /etc/ethers file using the following command
Here is what you would see as the output% dns-hosts example.com /etc/ethers %Note that the output uses relative names.
All of this can be automated using the following makefile fragment:By doing this, all you need to do is edit the example.com file, and the use the make(1) command to bring everything up-to-date./etc/hosts: example.com dns-hosts example.com $@
If you were using NIS, NIS+ or LDAP you would update them, rather than the static file.
|Reference Manual||DNS-HOSTS (1)||dnsutl|