[Kea-users] DDNS Error
Wlodek Wencel
wlodek at isc.org
Wed Jun 10 07:38:05 UTC 2020
Hey,
I believe you had to many brackets at start and missing coma before loggers:
{
"DhcpDdns": {
"forward-ddns": {
"ddns-domains": [
{
"dns-servers": [
{
"hostname": "",
"ip-address": "192.168.40.10",
"port": 53
}
],
"key-name": "homelocal.key",
"name": "home.local."
}
]
},
"loggers": [
{
"debuglevel": 99,
"name": "kea-dhcp-ddns",
"output_options": [
{
"output": "/var/log/kea-ddns.log"
}
],
"severity": "DEBUG"
}
],
"tsig-keys": [
{
"algorithm": "HMAC-SHA256",
"name": "homelocal.key",
"secret": "jo/1eHCej8eFTY2aqvICCNINVvbbv9KuEU="
}
]
}
}
Tools like web json validators can be very helpful to find those kind of
issues.
Regards
Wlodek Wencel
QA, ISC
On 10/06/2020 05:35, Peter Fraser wrote:
>
> Thanks so much for both replies. I made the changes you mentioned. I
> found I also had to change the ip-addess to the ip address of the
> server. When I had it as 127.0.0.1, I was getting a corrupt reply
> error from the DNS Server in the logs. Thankfully now, the server is
> updating. I have just one last error now that I am trying to figure
> out. This is in the kea-dhcp-ddns.conf file. I keep getting the error :
>
>
>
> *INFO/keactrl: Starting /usr/local/sbin/kea-dhcp-ddns -c
> /usr/local/etc/kea/kea-dhcp-ddns.conf*
>
> *2020-06-09 23:13:15.700 FATAL [kea-dhcp-ddns.dctl/72504]
> DCTL_CONFIG_FILE_LOAD_FAIL DhcpDdns reason: Configuration parsing
> failed: /usr/local/etc/kea/kea-dhcp-ddns.conf:28.3-11: syntax error,
> unexpected loggers, expecting "," or }*
>
>
>
> I get this when I enable the logging section in the file. I am not
> sure why. I pretty much used the defaults from the sample file. I even
> compared my file with the sample file and everything there is the same
> except that I enabled debugging in mine.
>
>
>
> Please note my entire kea-dhcp-ddns.conf below. I have been going
> through but I can’t seem to find a syntax error.
>
>
>
> {
>
> {
>
> "DhcpDdns": {
>
>
>
> "tsig-keys": [
>
> {
>
> "name": "homelocal.key",
>
> "algorithm": "HMAC-SHA256",
>
> "secret": "jo/1eHCej8eFTY2aqvICCNINVvbbv9KuEU="
>
> }
>
> ],
>
>
>
> "forward-ddns": {
>
> "ddns-domains": [
>
> {
>
> "name": "home.local.",
>
> "key-name": "homelocal.key",
>
> "dns-servers": [
>
> {
>
> "hostname": "",
>
> "ip-address": "192.168.40.10",
>
> "port": 53
>
> }
>
> ]
>
> }
>
> ]
>
> }
>
>
>
> "loggers": [
>
> {
>
> "name": "kea-dhcp-ddns",
>
> "output_options": [
>
> {
>
> "output": "/var/log/kea-ddns.log"
>
>
>
> }
>
> ],
>
> "severity": "DEBUG",
>
> // If DEBUG level is specified, this value is used. 0 is least
> verbose,
>
> // 99 is most verbose. Be cautious, Kea can generate lots and lots
>
> // of logs if told to do so.
>
> "debuglevel": 99
>
> }
>
> ]
>
> }
>
> }
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *Joshua Schaeffer <mailto:jschaeffer at harmonywave.com>
> *Sent: *Tuesday, June 9, 2020 1:06 PM
> *To: *kea-users at lists.isc.org <mailto:kea-users at lists.isc.org>
> *Subject: *Re: [Kea-users] DDNS Error
>
>
>
>
>
> On 6/9/20 11:28 AM, Stephen Morris wrote:
>
> 2. In the "forward-ddns" section of the kea-dhcp-ddns.conf
> configuration
>
> file, "key-name" is set to blank, so no key is being used to communicate
>
> with the BIND server. However, in the BIND configuration, the
>
> "allow-update" clause means that BIND requires a key in order to update
>
> the "home.local" zone.
>
>
>
> 3. The name of the only defined key in the kea-dhcp-ddns configuration
>
> is "homelocal.key." (i.e. with a trailing period), but the name of the
>
> key in BIND is "homelocal.key" (without the trailing period). Assuming
>
> the defined key is the one that should be used to communicate with BIND,
>
> the names should match.
>
> I'd agree with Stephen that you need to make sure your key-name is
> specified in the forward-ddns section and that it matches the key name
> that BIND is configured to use. In addition to this you are getting an
> RCODE response, which means that you are getting an error from the DNS
> server. As you have DNS logs set to debug you should look through
> those logs to see if the DNS server will give you more information
> about the specifics of the error.
>
> --
> Thanks,
> Joshua Schaeffer
>
>
>
>
> _______________________________________________
> 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
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20200610/dd3532f1/attachment-0001.htm>
More information about the Kea-users
mailing list