Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
dns-hosts(1)		    General Commands Manual		  dns-hosts(1)

       dns-hosts - generate /etc/hosts entries from DNS	tables

       dns-hosts [ option...  ][ infile	[ outfile ]]
       dns-hosts -Help
       dns-hosts -VERSion

       The  dns-hosts  program is used to generate the /etc/hosts entries from
       DNS tables.

       If the input file is not	named, or the name '-' is used,	 the  standard
       input is	read.

       If the output file is not named,	or the name '-'	is used, the startdard
       output is written.

       The following options are understood:

	       This option may be used to delete A and NS records which	refer-
	       ence names in domains outside the domain	specified in the clos-
	       est preceeding SOA record.

	       This option may be used to see what  dns-hosts  deciphers  each
	       resource	record as.

	       This  option  may  be used to get more information about	how to
	       used th dns-hosts program.

	       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

       The idea	is that	you have all of	the information	concerning  each  com-
       puter  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 ``''  and  which	 contains  the
       following text
       You can generate	the /etc/ethers	file using the following command
	      %	dns-hosts /etc/ethers
       Here is what you	would see as the output
       Note that the output uses relative names.

       All of this can be automated using the following	makefile fragment:
		      dns-hosts $@
       By doing	this, all you need to do is edit the file, and the
       use the make(1) command to bring	everything up-to-date.

       If you were using NIS, NIS+ or LDAP you would update them, rather  than
       the static file.

Reference Manual		    dnsutl			  dns-hosts(1)


Want to link to this manual page? Use this URL:

home | help