Kostis Netzwerkberatung
Konstantinos Kostis
Talstr. 25, D-63322 Rödermark
Tel. +49 6074 881056, FAX 881058
kosta@kostis.net, http://www.kostis.net/

You may use this software free of charge at your own risk

netdb 3.0.6 (2001-01-29)


netdb template format files

netdb format files are templates used to create configuration files (or anything else you can think of) using netdb data.

How can we put them to use?

Example hosts.frm

The following format file is a template for an IP hosts file such as /etc/hosts or %systemroot%\system32\drivers\etc\hosts. This is just an example - use DNS instead.

%ipaddr% %hostname%.%domainroot% %hostname% # %comment%

output using hostname=live, domain=.usr, domainroot=kostis.net, ipaddr=192.168.0.254, ipmask=255.255.255.0
comment=Red Hat Linux 7.0 (DNS/SMB/DHCP/i4l/netdb/etc.)

192.168.0.254 live.kostis.net live # Red Hat Linux 7.0 (DNS/SMB/DHCP/i4l/netdb/etc.)

Example named-h.frm

The following format file is a template for an A RR in a DNS zone file (db.kostis.net).

%hostname%         IN     A     %ipaddr%  

output using hostname=live, domain=.usr, domainroot=kostis.net, ipaddr=192.168.0.254, ipmask=255.255.255.0

live                 IN     A     192.168.0.254

Example named-r.frm

The following format file is a template for a DNS zone file (db.192.168.0).

%iphostrev%     IN     PTR     %hostname%.%domainroot%.

output using hostname=live, domain=.usr, domainroot=kostis.net, ipaddr=192.168.0.254, ipmask=255.255.255.0

254             IN     PTR     live.kostis.net.