<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(34, 34, 34); font-family: "Courier New"; font-size: 9pt; font-weight: 400;">Hi again Christian,</span><br>
</div>
<div><b style="font-weight:normal">
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400"> In reply to 2), try adding the following to the subnet definition:</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"client-class"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"reservation"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">,</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
 </p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">NB:
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"reservation"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400"> is perhaps not the best choice of name for a client class.</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
 </p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:12pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">Kind Regards Peter</span></p>
</b>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div id="Signature">
<div></div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Peter Davies <peter.watson.davies@outlook.com><br>
<b>Sent:</b> 03 November 2021 10:12<br>
<b>To:</b> BÖSCH Christian <boesch@fhv.at>; kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] ddns rev. zones and required client class</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div style="color:#000000; background-color:#ffffff; font-family:Menlo,Monaco,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span>Hi Christian,</span></span>
<div><span>  DNS updates are performed by the kea-dhcp-ddns (aka d2) process on receipt a "Name Change Request" (NCR).
</span></div>
<div><span>You would need to change the ip address in the NCR sent from Kea to enable sort of behaviour.</span></div>
<div><span>The behavioral parameters for ddns in kea-dhcp4 configuration are: </span>
</div>
<div><span>• ddns-send-updates</span></div>
<div><span>• ddns-override-no-update</span></div>
<div><span>• ddns-override-client-update</span></div>
<div><span>• ddns-replace-client-name</span></div>
<div><span>• ddns-generated-prefix</span></div>
<div><span>• ddns-qualifying-suffix</span></div>
<div><span>• ddns-update-on-renew</span></div>
<div><span>• ddns-use-conflict-resolution</span></div>
<div><span>• hostname-char-set</span></div>
<div><span>• hostname-char-replacement </span></div>
<br>
<div><span>There does not appear to be a parameter that could be used to change the IP address in an NCR.</span></div>
<br>
<span><span>Kind Regards Peter</span></span></div>
<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
</div>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of BÖSCH Christian <boesch@fhv.at><br>
<b>Sent:</b> 02 November 2021 14:54<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> [Kea-users] ddns rev. zones and required client class</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_x_MsoNormal, li.x_x_MsoNormal, div.x_x_MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif}
span.x_x_EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_x_MsoChpDefault
        {font-size:12.0pt;
        font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</style>
<div lang="en-AT" style="word-wrap:break-word">
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal"><span lang="EN-US">Hi,</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">I want to migrate from isc to kea and I've kea 2.0 installed. I have 2 questions about this:</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">1.</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">I have consolidated the ddns rev. zones and have set in isc's config:</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">  ddns-rev-domainname "128-191.21.172.in-addr.arpa.";</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">Is there not this option in kea to explicit specify a custom rev. zone?</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">2.</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">I'm trying that only hosts with reservations get a lease and have configured the following below.</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">One way with all known clients, and the other with the assigned client-class to the reservation.</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">But if I test in both cases with a client without reservation it also gets an IP address.</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">Am I doing something wrong here?</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">....</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">"reservations": [</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">  {</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    "hw-address": "11:22:33:44:55:66",</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    "client-classes": [ "reservation" ],</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    "hostname": "test-host"</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">  }</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">],</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">"client-classes": [</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    {</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">        "name": "all-with-reservation",</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">        "test": "member('KNOWN')",</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">        "only-if-required": true</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    },</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    {</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">        "name": "reservation",</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">        "only-if-required": true</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    }</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">],</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">"subnet4": [</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">  {</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    "id": 151,</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    "subnet": "172.21.151.0/24",</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    "pools": [ { "pool": "172.21.151.5-172.21.151.254" } ],</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    // all known</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    "require-client-classes": [ "all-with-reservation"],</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    // class assigned to reservation</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    //"require-client-classes": [ "reservation"],</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">    }</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">....</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">Thanks,</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US">Christian</span></p>
</div>
</div>
</div>
</body>
</html>