new dlz_wildcard module
Vadim S. Goncharov
vgoncharov at nic.ru
Wed Jan 23 11:03:11 UTC 2013
Hi,
I've written a new DLZ module, dlz_wildcard, which we use to serve one
static zone for a template FQDN, configured in named.conf just like a plain
zone, e.g.:
dlz "dlz_stub_zone" {
database "dlz_wildcard *porno*.com 10.0.* 1800
@ 3600 SOA {ns3-fwl2.nic.ru. support.nic.ru. 42 14400 7200
2592000 600}
@ 3600 NS ns3-fwl2.nic.ru.
@ 3600 NS ns4-fwl2.nic.ru.
@ 3600 NS ns8-fwl2.nic.ru.
@ 3600 MX {5 mf1.nic.ru.}
ftp 86400 A 1.2.3.4
sql 86400 A 9.8.7.6
tmp {} A 192.0.0.2
txt 300 TXT {\"you requested $record$ in $zone$\"}
* 86400 A 109.70.27.4
";
};
Here:
argv[1] = *porno*.com - standard unix shell-pattern of zone name
argv[2] = 10.0.* - shell-pattern of IP addrs who can AXFR
argv[3] = 1800 - is like $TTL, used as default ("{}") for "tmp"
Attached file is currently just a patch for DLZ_STUB, it is placed over it,
e.g. how to install for FreeBSD (must enable checkbox for DLZ_STUB):
cd /usr/ports/dns/bind98
make clean
make patch
cp /path/dlz_wildcard_driver.c
work/bind-9.8.4-P1/contrib/dlz/drivers/dlz_stub_driver.c
make WITH_DEBUG=1 install
Is anybody interested in inclusion of this new module in BIND distribution,
so that it could be made to be full separate new module available in
./configure (instead of patch to dlz_stub) ?
--
Vadim Goncharov <vgoncharov at nic.ru> RU-Center
NET Department http://www.nic.ru
NET-SYS Group phone:+7(495)737-7646 (ext.4019)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dlz_wildcard_driver.c
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20130123/b8ae5fbe/attachment.c>
More information about the bind-users
mailing list