|
NAMEdns-dhcp - generate dhcp tables from DNS tablesSYNOPSISdns-dhcp [ option... ][ infile [ outfile ]]dns-dhcp -Help dns-dhcp -VERSion DESCRIPTIONThe dns-dhcp program is used to generate portions of the /etc/dhcp.conf file from the forward DNS tables, augmented with ``ether a'' entries.This is supplemented with an additional ``dhcp'' class, so that extra information may be defined. The output format is described in the dhcpd (8) manual entry. Usually, the output of the dns-dhcp command is included into the /etc/dhcp.conf file, rather then define the entire file with the output in the dns-dhcp command. DHCP TYPESThe ``dhcp'' class has the following defined types:
THE * DEFAULTThe special host name ``*'' may be used to specify defaults. These may be over-riden by specific entries. The most recently see default of each type name is remembered. This may be exploited, for example, to set different servers and gateways for different networks.OPTIONSThe following options are understood:
All other options will produce a diagnostic error. See the file man1/arglex.so. See the file man1/exit.so. EXAMPLEThe 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 text See the file man1/example.so. % dns-dhcp example.com /etc/dhcp.conf % See the file man1/example.dhcp.so. MakefileAll of this can be automated using the following makefile fragment:/etc/dhcp.conf: example.com dns-dhcp example.com $@ If you were using NIS, NIS+ or LDAP you would update them, rather than the static file. See the file man1/copyright.so. See the file man1/author.so.
Visit the GSP FreeBSD Man Page Interface. |