<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">hi Peter<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 10 Oct 2023, at 09:40, Peter Davies <<a href="mailto:peterd@isc.org" class="">peterd@isc.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
  
  <div class=""><p class="">Hi Daniel,<br class="">
        The "domain-name-servers" option expects a list of IP addresses.
      Kea does not <br class="">
       resolve domain names as dhcpd did.<br class="">
       See:
<a class="moz-txt-link-freetext" href="https://kea.readthedocs.io/en/kea-2.4.0/arm/dhcp4-srv.html#standard-dhcpv4-options">https://kea.readthedocs.io/en/kea-2.4.0/arm/dhcp4-srv.html#standard-dhcpv4-options</a><br class="">
      <br class=""></p></div></div></blockquote>i got it, forgot that KEA want IP and not names.<br class=""><blockquote type="cite" class=""><div class=""><div class=""><p class="">
      <br class="">
       If you need to see the text, you could manually change the format
      to hexstring, i.e.:<br class="">
        "data": "'fr-06:/vol/system/share/conf'" <br class="">
      <br class="">
       I've added Gitlab feature request #51, "Text to hexstring" for
      you.<br class="">
       see: <a class="moz-txt-link-freetext" href="https://gitlab.isc.org/isc-projects/keama/-/issues/51">https://gitlab.isc.org/isc-projects/keama/-/issues/51</a><br class="">
      <br class=""></p></div></div></blockquote><div><br class=""></div>so when the option is text in isc-dhcp, it MUST be string and in hex? if so it’s not</div><div>really user friendly :-), I don’t have the ascii table in my head :-) so yes, all this</div><div>is handled by scripts, but …</div><div><br class=""></div><div>a question:</div><div>I see that the if/then/else is commented out, </div><div>meaning I should check it and if im ok whit it just uncomment it?</div><div>I still have to learn the new syntax :-(</div><div><br class=""></div><div>thanks</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>danny</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div class=""><p class="">
       Kind Regards Peter</p><p class=""><br class="">
    </p>
    <div class="moz-cite-prefix">On 10/10/2023 07.41, Daniel Braniss
      wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:5B20FA88-337B-4724-B2B9-C6909934B8AE@cs.huji.ac.il" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
      Hi,
      <div class="">first, as a very old user of isc dhcp, my
        compliments on KEA!</div>
      <div class=""><br class="">
      </div>
      <div class="">our dhcpd.conf is about 32K lines, and after some
        minor tweaks managed to run keama</div>
      <div class="">without errors (it seems ISC-DHCP is a bit less
        strict than keama (strange since they share code))</div>
      <div class="">these are some of the oddities:</div>
      <div class=""><br class="">
      </div>
      <div class="">this one seems harmless but …</div>
      <div class="">original isc-dhcp:</div>
      <div class=""><br class="">
      </div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">subnet 132.65.192.0 netmask
          255.255.252.0 {</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span class="Apple-tab-span" style="caret-color: rgb(0, 0, 0); white-space: pre;">    </span><span style="caret-color: rgb(0, 0, 0);" class="">option domain-name "</span><a href="http://cs.huji.ac.il/" class="" moz-do-not-send="true">cs.huji.ac.il</a><span style="caret-color: rgb(0, 0, 0);" class="">";</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span class="Apple-tab-span" style="caret-color: rgb(0, 0, 0); white-space: pre;">    </span><span style="caret-color: rgb(0, 0, 0);" class="">option domain-name-servers nsa,sa1,shuldig;</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span class="Apple-tab-span" style="caret-color: rgb(0, 0, 0); white-space: pre;">    </span><span style="caret-color: rgb(0, 0, 0);" class="">option routers 132.65.192.1;</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">}</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">becomes:</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">     {</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       "id": 1,</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       "subnet": "132.65.233.0/24",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       "option-data": [</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">         {</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "space": "dhcp4",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "name": "domain-name",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "code": 15,</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "data": "</span><a href="http://cs.huji.ac.il/" class="" moz-do-not-send="true">cs.huji.ac.il</a><span style="caret-color: rgb(0, 0, 0);" class="">"</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">         },</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">         {</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "space": "dhcp4",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "name": "domain-name-servers",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "code": 6,</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <font class=""><span style="caret-color: rgb(0,
            0, 0);" class="">//          "original-data":
            "nsa,sa1,shuldig”,  <- ?????</span></font><br style="caret-color: rgb(0, 0, 0);" class="">
        <font class=""><span style="caret-color: rgb(0,
            0, 0);" class="">           "data": "nsa, sa1, shuldig”    
                     <- ??????</span></font></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">         },</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">         {</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "space": "dhcp4",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "name": "routers",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "code": 3,</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "data": "132.65.224.1"</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">         }</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       ]</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">     },</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">this one is a bit strange:</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">original </span><font class=""><span style="caret-color: rgb(0, 0, 0);" class="">isc-dhcp:</span></font></div>
      <div class=""><font class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
          </span></font></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">option FBSD.conf-path code 5 = text;</span><br style="caret-color: rgb(0, 0, 0);" class="">
      </div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">becomes:</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">   "option-def": [</span></div>
      <div class="">...<br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">     {</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       "space": "FBSD",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       "name": "conf-path",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       "code": 5,</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">       "type": "string"</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">     },</span><br style="caret-color: rgb(0, 0, 0);" class="">
      </div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">so far so good, but then</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><font class=""><span style="caret-color: rgb(0, 0, 0);" class="">…</span></font></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">         {</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "space": "FBSD",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "name": "conf-path",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "code": 5,</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "csv-format": false,</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">//          "original-data":
          "fr-06:/vol/system/share/conf",</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">           "data":
          "66722d30363a2f766f6c2f73797374656d2f73686172652f636f6e66"</span><br style="caret-color: rgb(0, 0, 0);" class="">
        <span style="caret-color: rgb(0, 0, 0);" class="">         },</span><br style="caret-color: rgb(0, 0, 0);" class="">
      </div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">the string becomes hex?</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">have some more odd issues, but for
          later.</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class="">thanks</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>danny</span></div>
      <div class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
        </span></div>
      <br class="">
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Peter Davies
Support Engineer 
Internet Systems Corporation
<a class="moz-txt-link-abbreviated" href="mailto:peterd@isc.org">peterd@isc.org</a>
001 650-423-1460</pre>
  </div>

-- <br class="">ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" class="">https://www.isc.org/contact/</a> for more information.<br class=""><br class="">To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" class="">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br class=""><br class="">Kea-users mailing list<br class=""><a href="mailto:Kea-users@lists.isc.org" class="">Kea-users@lists.isc.org</a><br class="">https://lists.isc.org/mailman/listinfo/kea-users<br class=""></div></blockquote></div><br class=""></body></html>