[Kea-users] migration questions
Peter Davies
peterd at isc.org
Tue Oct 10 06:40:58 UTC 2023
Hi Daniel,
The "domain-name-servers" option expects a list of IP addresses. Kea
does not
resolve domain names as dhcpd did.
See:
https://kea.readthedocs.io/en/kea-2.4.0/arm/dhcp4-srv.html#standard-dhcpv4-options
If you need to see the text, you could manually change the format to
hexstring, i.e.:
"data": "'fr-06:/vol/system/share/conf'"
I've added Gitlab feature request #51, "Text to hexstring" for you.
see: https://gitlab.isc.org/isc-projects/keama/-/issues/51
Kind Regards Peter
On 10/10/2023 07.41, Daniel Braniss wrote:
> Hi,
> first, as a very old user of isc dhcp, my compliments on KEA!
>
> our dhcpd.conf is about 32K lines, and after some minor tweaks managed
> to run keama
> without errors (it seems ISC-DHCP is a bit less strict than keama
> (strange since they share code))
> these are some of the oddities:
>
> this one seems harmless but …
> original isc-dhcp:
>
> subnet 132.65.192.0 netmask 255.255.252.0 {
> option domain-name "cs.huji.ac.il <http://cs.huji.ac.il>";
> option domain-name-servers nsa,sa1,shuldig;
> option routers 132.65.192.1;
> }
>
> becomes:
> {
> "id": 1,
> "subnet": "132.65.233.0/24",
> "option-data": [
> {
> "space": "dhcp4",
> "name": "domain-name",
> "code": 15,
> "data": "cs.huji.ac.il <http://cs.huji.ac.il>"
> },
> {
> "space": "dhcp4",
> "name": "domain-name-servers",
> "code": 6,
> // "original-data": "nsa,sa1,shuldig”, <- ?????
> "data": "nsa, sa1, shuldig” <- ??????
> },
> {
> "space": "dhcp4",
> "name": "routers",
> "code": 3,
> "data": "132.65.224.1"
> }
> ]
> },
>
> this one is a bit strange:
> original isc-dhcp:
>
> option FBSD.conf-path code 5 = text;
>
> becomes:
> "option-def": [
> ...
> {
> "space": "FBSD",
> "name": "conf-path",
> "code": 5,
> "type": "string"
> },
>
> so far so good, but then
>
> …
>
> {
> "space": "FBSD",
> "name": "conf-path",
> "code": 5,
> "csv-format": false,
> // "original-data": "fr-06:/vol/system/share/conf",
> "data":
> "66722d30363a2f766f6c2f73797374656d2f73686172652f636f6e66"
> },
>
> the string becomes hex?
>
> have some more odd issues, but for later.
>
> thanks
>
> danny
>
>
--
Peter Davies
Support Engineer
Internet Systems Corporation
peterd at isc.org
001 650-423-1460
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20231010/ec92afd3/attachment.htm>
More information about the Kea-users
mailing list