<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">
<div class="moz-cite-prefix">On 5/26/16 6:22 AM, tach yon wrote:<br>
</div>
<blockquote cite="mid:DUB131-W18513C6943785BE9B9FFDA98410@phx.gbl"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I've set up Kea 1.0.0 to serve DHCP requests and store
lease information in a PgSQL database. There's also a
separate bind 9.10 server that I'm trying to push dynamic
DNS updates to, but unfortunately this isn't working. I'm
trying to find out why, but I've come across something I
don't quite understand.</div>
<div><br>
</div>
<div>This suggests to me that the entry has been successfully
added to the database with the fqdn_rev boolean marked as
true:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div> address | hwaddr | client_id |
valid_lifetime | expire | subnet_id |
fqdn_fwd | fqdn_rev | hostname | state</div>
<div>-----------+----------------+------------------+----------------+------------------------+-----------+----------+----------+---------------------------+-------</div>
<div> 168566422 | \x0050569d0f1f | \x010050569d0f1f |
4000 | 2016-05-26 11:04:35+01 | 1 | f |
t | windhcp.example.net. | 0</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Showing fqdn_rev marked as true seems strange because in
kea.conf I have it set to update forward DNS, not reverse
DNS.</div>
<div><br>
</div>
<div>
<div>"DhcpDdns": {</div>
<div> "tsig-keys": [</div>
<div> {</div>
<div> "name": "dynkey",</div>
<div> "algorithm": "HMAC-MD5",</div>
<div> "secret": "xxx"</div>
<div> },</div>
<div> ],</div>
<div> "forward-ddns": {</div>
<div> "ddns-domains": [</div>
<div> {</div>
<div> "name": "dynamic.example.net.",</div>
<div> "key-name": "dynkey",</div>
<div> "dns-servers": [ {
"ip-address": "10.12.30.7" } ]</div>
<div> },</div>
<div> ]</div>
<div> },</div>
<div> "reverse-ddns": {</div>
<div> "ddns-domains": [ ]</div>
<div> }</div>
<div>},</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I also see this in the ddns log:</div>
<div><br>
</div>
<div>
<div>2016-05-26 09:57:55.347 DEBUG
[kea-dhcp-ddns.dhcp-to-d2/94515]
DHCP_DDNS_REV_REQUEST_IGNORED Request ID</div>
<div>: Reverse updates are disabled, the reverse portion of
request will be ignored: Type: 0 (CHG_ADD)</div>
<div>Forward Change: no</div>
<div>Reverse Change: no</div>
<div>FQDN: [windhcp.dynamic.example.net.]</div>
<div>IP Address: [10.12.30.150]</div>
<div><span>Lease Expires On: 20160526100435</span></div>
<div>Lease Length: 4000</div>
<div><br>
</div>
<div>2016-05-26 09:57:55.348 DEBUG
[kea-dhcp-ddns.dhcp-to-d2/94515] DHCP_DDNS_REQUEST_DROPPED
Request ID </div>
<div>: Request contains no enabled update requests and will
be dropped: Type: 0 (CHG_ADD)</div>
<div>Forward Change: no</div>
<div>Reverse Change: no</div>
<div>FQDN: [windhcp.dynamic.example.net.]</div>
<div>IP Address: [10.12.30.150]</div>
<div><span>Lease Expires On: 20160526100435</span></div>
<div>Lease Length: 4000</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>This feels like it's trying to update a reverse request
despite having configured it to create forward entries,
unless I configured it wrong :\</div>
<div><br>
</div>
<div>If someone could please help make sense of this it would
be very much appreciated. Thank you in advance for your time
and consideration.</div>
<div><br>
</div>
<div>Kind regards,</div>
<div>Lewis</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
kea-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kea-dev@lists.isc.org">kea-dev@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-dev">https://lists.isc.org/mailman/listinfo/kea-dev</a></pre>
</blockquote>
<p><tt>Hello Lewis:</tt></p>
<p><tt>The log entries you show indicate that kea-dhcp-ddns (aka
D2) did not find any updates that it should or could do and
therefore dropped the request. If it had actually attempted
any updates you would have seen several more entries detailing
their progress (e.g. DHCP_DDNS_STARTING_TRANSACTION, </tt><tt><tt>DHCP_DDNS_UPDATE_REQUEST_SENT,</tt>
DHCP_DDNS_UPDATE_RESPONSE_RECEIVED). <br>
</tt></p>
<p><tt>The hostname shown in your database does not map to the
configured Forward DDNS domain you have defined. Your host,
"windhcp", is in "example.net.". If you peruse your log file
you should see an entry for DHCP_DDNS_NO_FWD_MATCH_ERROR. So
either your host name needs to be
"windhcp.dynamic.example.net." or your forward domain needs to
be "example.net."</tt></p>
<p><tt>I do not understand why the reverse flag is true. Either
there is simply a bug somewhere and it should not be true or
at some point you had reverse updates enabled for this same
client and IP address and the entry was made. You could look
for the reverse entry with:</tt></p>
<p><tt> dig </tt><tt>@10.12.30.7 -x</tt>10.12.30.150</p>
<p><tt>If you have the original log file, that would be extremely
helpful. It would also be helpful to see the "dhcp-ddns"
section for "Dhcp4".<br>
</tt></p>
<p><tt>We also have all of our log messages explained in
kea-messages.html. Which should be installed next to our
admin guide in <prefix>/share/doc/kea. We have a link
to it here <br>
</tt></p>
<tt><a class="moz-txt-link-freetext" href="http://kea.isc.org/docs/kea-messages.html#DHCP">http://kea.isc.org/docs/kea-messages.html#DHCP</a></tt>
<p><tt>(This link appears to be a little stale, and for some
reason the D2 messages are lumped under module "DHCP") <br>
</tt></p>
<p><tt><br>
</tt></p>
<p><tt>Thanks,</tt></p>
<p><tt><br>
Thomas Markwalder</tt></p>
<p><tt>ISC Software Engineering<br>
</tt></p>
<br>
On 5/26/16 6:22 AM, tach yon wrote:<br>
</div>
<blockquote cite="mid:DUB131-W18513C6943785BE9B9FFDA98410@phx.gbl"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=iso-8859-1">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I've set up Kea 1.0.0 to serve DHCP requests and store
lease information in a PgSQL database. There's also a separate
bind 9.10 server that I'm trying to push dynamic DNS updates
to, but unfortunately this isn't working. I'm trying to find
out why, but I've come across something I don't quite
understand.</div>
<div><br>
</div>
<div>This suggests to me that the entry has been successfully
added to the database with the fqdn_rev boolean marked as
true:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div> address | hwaddr | client_id |
valid_lifetime | expire | subnet_id |
fqdn_fwd | fqdn_rev | hostname | state</div>
<div>-----------+----------------+------------------+----------------+------------------------+-----------+----------+----------+---------------------------+-------</div>
<div> 168566422 | \x0050569d0f1f | \x010050569d0f1f |
4000 | 2016-05-26 11:04:35+01 | 1 | f | t
| windhcp.example.net. | 0</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Showing fqdn_rev marked as true seems strange because in
kea.conf I have it set to update forward DNS, not reverse DNS.</div>
<div><br>
</div>
<div>
<div>"DhcpDdns": {</div>
<div> "tsig-keys": [</div>
<div> {</div>
<div> "name": "dynkey",</div>
<div> "algorithm": "HMAC-MD5",</div>
<div> "secret": "xxx"</div>
<div> },</div>
<div> ],</div>
<div> "forward-ddns": {</div>
<div> "ddns-domains": [</div>
<div> {</div>
<div> "name": "dynamic.example.net.",</div>
<div> "key-name": "dynkey",</div>
<div> "dns-servers": [ { "ip-address":
"10.12.30.7" } ]</div>
<div> },</div>
<div> ]</div>
<div> },</div>
<div> "reverse-ddns": {</div>
<div> "ddns-domains": [ ]</div>
<div> }</div>
<div>},</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I also see this in the ddns log:</div>
<div><br>
</div>
<div>
<div>2016-05-26 09:57:55.347 DEBUG
[kea-dhcp-ddns.dhcp-to-d2/94515]
DHCP_DDNS_REV_REQUEST_IGNORED Request ID</div>
<div>: Reverse updates are disabled, the reverse portion of
request will be ignored: Type: 0 (CHG_ADD)</div>
<div>Forward Change: no</div>
<div>Reverse Change: no</div>
<div>FQDN: [windhcp.dynamic.example.net.]</div>
<div>IP Address: [10.12.30.150]</div>
<div><span>Lease Expires On: 20160526100435</span></div>
<div>Lease Length: 4000</div>
<div><br>
</div>
<div>2016-05-26 09:57:55.348 DEBUG
[kea-dhcp-ddns.dhcp-to-d2/94515] DHCP_DDNS_REQUEST_DROPPED
Request ID </div>
<div>: Request contains no enabled update requests and will be
dropped: Type: 0 (CHG_ADD)</div>
<div>Forward Change: no</div>
<div>Reverse Change: no</div>
<div>FQDN: [windhcp.dynamic.example.net.]</div>
<div>IP Address: [10.12.30.150]</div>
<div><span>Lease Expires On: 20160526100435</span></div>
<div>Lease Length: 4000</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>This feels like it's trying to update a reverse request
despite having configured it to create forward entries, unless
I configured it wrong :\</div>
<div><br>
</div>
<div>If someone could please help make sense of this it would be
very much appreciated. Thank you in advance for your time and
consideration.</div>
<div><br>
</div>
<div>Kind regards,</div>
<div>Lewis</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
kea-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kea-dev@lists.isc.org">kea-dev@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-dev">https://lists.isc.org/mailman/listinfo/kea-dev</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>