<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="monospace">Hi Martin,<br>
At debuglevel 55, the "kea-dhcp4.ddns" logger generates
messages:<br>
"DHCP4_CLIENT_HOSTNAME_DATA" and "DHCP4_CLIENT_HOSTNAME_DATA"
for DHCPOFFERs <br>
and DHCPACKs. Both of these debug messages contain the clients
hostname.<br>
<br>
You will need to configure the "kea-dhcp4.ddns" logger with
severity "DEBUG" <br>
and define "debuglevel" to at least 55, as follows:<br>
<br>
"loggers": {<br>
"name": "kea-dhcp4",<br>
"output_options": [ { "output": "kea-dhcp4.log" } ], <br>
"severity": "INFO" <br>
},<br>
{<br>
"name": "kea-dhcp4.ddns",<br>
"output_options": [ {<br>
"output": "kea-dhcp4.ddns.log" } ],<br>
"severity": "DEBUG",<br>
"debuglevel": 55<br>
}<br>
<br>
* The two loggers can be configured to send output to the same
file.<br>
<br>
/Peter</font></p>
<div class="moz-cite-prefix">On 11/05/2026 17.32, martin f krafft
via Kea-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:agH2gGTYygclkzhg@lotus.rw.madduck.net">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<meta content="width=device-width, initial-scale=1.0"
name="viewport">
<p style="text-align: justify; text-justify: auto">Hello,</p>
<p style="text-align: justify; text-justify: auto">I am new to
Kea, so maybe this is a very silly question. However, I could
not find out about my question in the <a
href="https://kea.readthedocs.io/en/stable/arm/logging.html"
moz-do-not-send="true">logging docs</a>.</p>
<p style="text-align: justify; text-justify: auto">DHCP requests
can include the client hostname (option 12), e.g.:</p>
<div class="codehilite" style="background: #f8f8f8">
<pre style="line-height: 125%"><span></span><code>Hostname (12), length 9: "tas-a1t-5"
</code></pre>
</div>
<p style="text-align: justify; text-justify: auto">Is it possible
to echo this in log messages? I am personally better at parsing
these names than MAC addresses ;)</p>
<p style="text-align: justify; text-justify: auto">Thanks,</p>
<div id="signature"
style="font-family: Lato, Calibri, Tahoma, sans-serif; max-width: 32em"><span
class="sig_separator" style="display: none">-- </span>
<p style="text-align: justify; text-justify: auto">martin krafft
| <a href="https://matrix.to/#/#madduck:madduck.net"
moz-do-not-send="true" class="moz-txt-link-freetext">https://matrix.to/#/#madduck:madduck.net</a></p>
<p class="blockquote"
style="text-align: justify; text-justify: auto; padding: 0 0.5em; margin: 0; font-style: italic; border-left: 2px solid #666">windoze
nt crashed.<br>
i am the blue screen of death.<br>
no one hears your screams.<br>
</p>
<p class="hidden"
style="text-align: justify; text-justify: auto; display: none">spamtraps:
<a href="mailto:madduck.bogus@madduck.net"
moz-do-not-send="true" class="moz-txt-link-freetext">madduck.bogus@madduck.net</a><br>
</p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
<pre class="moz-signature" cols="72">--
Peter Davies
Support Engineer
Internet Systems Corporation
</pre>
</body>
</html>