isc-dhcp: detect whether ddns transfers are IPv4 only
authorPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 15 Mar 2022 01:40:48 +0000 (19:40 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 15 Mar 2022 19:25:55 +0000 (13:25 -0600)
commit2aff21251018a6bf21fe255070db008b47e8933b
tree622466b5901b697892fd5494a7cbf6a5cdca6cee
parent0172063b0a6bafcc928c00cfece5bd9c79ef0c74
isc-dhcp: detect whether ddns transfers are IPv4 only

If named is configured to not listen on any IPv6 interfaces,
then we should run 'nsupdate' with the '-4' argument.

Also:

* cleanup RFC-1918 address detection;
* don't generate PTR records for domain entries that aren't
  RFC-1918 addresses or these will generate NOTAUTH failures;

We're assuming that we're doing DNS split-horizon and that
internal addresses aren't routable.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
net/isc-dhcp/files/dhcpd.init