subdomain/zone with DHCPD
lejeczek
peljasz at yahoo.co.uk
Thu Oct 15 14:56:42 UTC 2015
hi everybody
I'm trying a bind setup which could be talked to by dhcpd.
I've bind setup with virtual zones and now trying to set up
dhcpd so it would be updating DNS, but... but.
In dhcpd.conf I'm trying:
subnet 192.168.4.64 netmask 255.255.255.224 {
ddns-domainname "host.domain.my";
ddns-rev-domainname "in-addr.arpa";
option domain-name-servers 192.168.4.65;
option domain-name "host.domain.my";
option host-name = config-option server.ddns-hostname;
option broadcast-address 192.168.4.95;
option routers 192.168.4.65;
one-lease-per-client on;
zone host.domain.my. {
primary 127.0.0.1;
key dhcpd;
}
pool {
range dynamic-bootp 192.168.4.66 192.168.4.93;
allow unknown-clients;
default-lease-time 86400;
#default-lease-time 3600;
max-lease-time 10000;
}
}
hoping that virtual zone in DNS server which parent
zone/domain is "domain.my" would get updated as dhcpd
clients request IPs.
parent/main BIND zone config:
$TTL 86400 ; 1 day
$ORIGIN domain.my.
@ IN SOA host.domain.my. root.host.domain.my. (
102 ; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
3600 ; minimum (1 hour)
)
NS host.domain.my.
A 192.168.2.110
host A 192.168.2.110
; virtual subdomain a.k.a subzone, for virt guest on this host
$ORIGIN host.domain.my.
virt A 192.168.4.65
If it is looking a bit confusing it's because I'm trying:
for domain - "domain.my" - whose bind server is -
"host.domain.my" - have this same box to be a host for virt
guests.
So essentially virt guests would be:
guest-1.host.domain.my
guest-2.hos...
etc, so for guests host.domain.my would be their DNS domain.
DNS as such is working but I cannot get DHCP to do its part.
I thought it was simple, seemingly..
Can you help? (I'm in the process of signing up to dhcp list)
many thanks.
More information about the bind-users
mailing list