|
NAMEdns-ng - generate /etc/netgroup entries from DNS tablesSYNOPSISdns-ng [ option... ][ infile [ outfile ]]dns-ng -Help dns-ng -VERSion DESCRIPTIONThe dns-ng program is used to generate a netgroup file from DNS information.Each host is given a netgroup. Higher-level netgroups can be created from patterns applied to the HINFO field. OPTIONSThe following options are understood:
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.By using netgroups, you can assign NFS mount permissions (the /etc/exports file) and rlogin permissions (the /etc/hosts.equiv file) based on the kind of machine they are. Given a database file called ``example.com'' and which contains the following text See the file man1/example.so.
% dns-ng example.com /etc/netgroup \
-g pc MSDOS -g mac MacOS \
-g unix UNIX -g other '.*'
%
See the file man1/example.netgroup.so. MakefileAll of this can be automated using the following makefile fragment:/etc/netgroup: example.com dns-ng example.com $@ -g pc MSDOS \ -g mac MacOS -g unix UNIX -g other '.*' If you were using NIS, NIS+ or LDAP you would update them, rather than the static file, especially since on many systems the static file doesn't do anything. See the file man1/copyright.so. See the file man1/author.so.
Visit the GSP FreeBSD Man Page Interface. |