Hi,

I've recently setup KEA to handle DHCP, which is does already.  It was a fun 
experience to go through the documentation and testing it out.

I also have a knot dns server that manages my local zones.  I've followed the 
documentation for knot for creating my TSIG key, tested it using knsupdate (it 
worked) and then added it to my kea-dhcp-ddns.conf according to the d2 
documentation (also adding forward- and reverse-dns configuration).  I've then 
set dhcp_ddns=yes in keactrl.conf as well.

But I don't get any DDNS updates.  I'm running Armbian (on a ASUS Tinkerboard 
if it matters) but it's basically just Debian.  I've unmasked, enabled and 
started dhcp4/d2.

I've attached a log/config file so this mail won't get overly long here.  I 
think I've configured kea dhcp4/ddns correctly but I'm obviously missing 
something that prevents this from working like expected.  I've only included a 
limited config but everything is the same for all subnets/zones.

Any pointers?


Regards,
Oscar
# systemctl status kea-ctrl-agent.service
● kea-ctrl-agent.service - Kea Control Agent
     Loaded: loaded (/lib/systemd/system/kea-ctrl-agent.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-12-30 21:11:09 UTC; 20min ago
       Docs: man:kea-ctrl-agent(8)
   Main PID: 3724 (kea-ctrl-agent)
      Tasks: 1 (limit: 4740)
     Memory: 644.0K
     CGroup: /system.slice/kea-ctrl-agent.service
             └─3724 /usr/sbin/kea-ctrl-agent -c /etc/kea/kea-ctrl-agent.conf

# systemctl status kea-dhcp4-server.service
● kea-dhcp4-server.service - Kea IPv4 DHCP daemon
     Loaded: loaded (/lib/systemd/system/kea-dhcp4-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-12-30 21:11:09 UTC; 12min ago
       Docs: man:kea-dhcp4(8)
   Main PID: 3721 (kea-dhcp4)
      Tasks: 1 (limit: 4740)
     Memory: 1.7M
     CGroup: /system.slice/kea-dhcp4-server.service
             └─3721 /usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf

# systemctl status kea-dhcp-ddns-server.service
● kea-dhcp-ddns-server.service - Kea DDNS Service
     Loaded: loaded (/etc/systemd/system/kea-dhcp-ddns-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-12-30 21:11:09 UTC; 13min ago
       Docs: man:kea-dhcp-ddns(8)
   Main PID: 3718 (kea-dhcp-ddns)
      Tasks: 1 (limit: 4740)
     Memory: 736.0K
     CGroup: /system.slice/kea-dhcp-ddns-server.service
             └─3718 /usr/sbin/kea-dhcp-ddns -c /etc/kea/kea-dhcp-ddns.conf

# cat /etc/kea/kea-dhcp4.conf

// Just parts of it, the config passes it's config test
{
    "Dhcp4": {
        "interfaces-config": {
            "interfaces": [
                "eth0.10/172.19.10.2",
                "eth0.3/192.168.0.2"
            ]
        },
        // One subnet
        "subnet4": [
            {
                // eth0.3
                "subnet": "192.168.0.0/24",
                "pools": [ { "pool": "192.168.0.100 - 192.168.0.200" } ],

                "option-data": [
                    { "name": "routers",
                      "data": "192.168.0.1"
                    },
                    { "name": "domain-name-servers",
                      "data": "192.168.0.2"
                    },
                    { "name": "domain-name",
                      "data": "management.home.arpa"
                    },
                    { "name": "domain-search",
                      "data": "management.home.arpa, services.home.arpa"
                    }
                ],
            }
        ]

// kea-dhcp-ddns.conf
{
    "DhcpDdns":
    {
        "ip-address": "127.0.0.1",
        "port": 53001,
        "control-socket": {
            "socket-type": "unix",
            "socket-name": "/tmp/kea-dhcp-ddns-ctrl.sock"
        },
        "tsig-keys": [{ "name": "ddns", "algorithm": "HMAC-SHA256",
                        "secret": "no-this-is-not-my-secret-key" }],

        // Just one local zone here, more in actual config but only the name differs
        "forward-ddns": {
            "ddns-domains": [
                { "name": "management.home.arpa.",
                  "key-name": "ddns",
                  "dns-servers": [
                      {
                          "hostname": "",
                          "ip-address": "127.0.0.1",
                          "port": 1053
                      }
                  ]
                }
            ]
        },
        "reverse-ddns": {
            "ddns-domains": [
                { "name": "0.168.192.in-addr.arpa.",
                  "key-name": "ddns",
                  "dns-servers": [
                      {
                          "hostname": "",
                          "ip-address": "127.0.0.1",
                          "port": 1053
                      }
                  ]
                }
            ]
        },
    }
}
_______________________________________________
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to