multiple subnets same ddns zone
Glenn Satchell
Glenn.Satchell at uniq.com.au
Fri Aug 28 05:15:21 UTC 2009
This is from dhcpd.conf man page:
ddns-rev-domainname name; The name parameter should be the
domain name that will be appended to the client's reversed
IP address to produce a name for use in the client's PTR
record. By default, this is "in-addr.arpa.", but the
default can be overridden here.
The reversed IP address to which this domain name is
appended is always the IP address of the client, in dotted
quad notation, reversed - for example, if the IP address
assigned to the client is 10.17.92.74, then the reversed
IP address is 74.92.17.10. So a client with that IP
address would, by default, be given a PTR record of
10.17.92.74.in-addr.arpa.
Usually you want the default value. In your case you are creating a
reverse of, for example, 4.1.0.10.1.0.10.in-addr.arpa.
Oh, and the subnet mask is not /27 for the first subnet.
regards,
-glenn
>Date: Thu, 27 Aug 2009 22:41:23 -0500
>From: "Terry L. Inzauro" <tinzauro at ha-solutions.net>
>To: Users of ISC DHCP <dhcp-users at lists.isc.org>
>Subject: multiple subnets same ddns zone
>
>is it possible to have multiple subnets defined (for instance 10.0.1.0/27 and
10.0.1.32/27 within 10.0.1.0/24) and then have
>both subnets update the same reverse dns zone such as 1.0.10.in-addr.arpa?
>
>if so, can i have some pointers on how to do it?
>
>
>this is what i currently have:
>
>ddns-update-style interim;
>option domain-name-servers host1, host2;
>option ntp-servers pool.ntp.org;
>default-lease-time 2628000;
>max-lease-time 2628000;
>#authoritative;
>log-facility local7;
>one-lease-per-client on;
>option time-offset -6;
>do-forward-updates off;
>
>
># define the key used for ddns updates to local bind9 server
>key dydns {
> algorithm hmac-md5;
> secret thisisthesecret;
> }
># primary reverse zone for 1.0.10.in-addr.arpa
>zone 1.0.10.in-addr.arpa. {
> primary localhost;
> key dydns;
> }
>
># 10.0.1.0/27
The netmask here doesn't match /27
>subnet 10.0.1.0 netmask 255.255.255.0 {
> default-lease-time 2628000;
> ddns-updates on;
> #ddns-domainname "example.org";
> ddns-rev-domainname "1.0.10.in-addr.arpa.";
> authoritative;
> deny client-updates;
> allow unknown-clients;
> option routers 10.0.1.1;
>
> pool {
> range 10.0.1.4 10.0.1.30;
> }
> }
># 10.0.1./27
>subnet 10.0.1.32 netmask 255.255.255.224 {
> default-lease-time 2628000;
> ddns-updates on;
> #ddns-domainname "example.org";
> ddns-rev-domainname "1.0.10.in-addr.arpa.";
> authoritative;
> deny client-updates;
> allow unknown-clients;
> option routers 10.0.1.36;
>
> pool {
> range 72.22.210.228 72.22.210.254;
> }
>}
>
>
>any help would be greatly appreciated.
>
>
>
>
>_______________________________________________
>dhcp-users mailing list
>dhcp-users at lists.isc.org
>https://lists.isc.org/mailman/listinfo/dhcp-users
More information about the dhcp-users
mailing list