[Kea-users] Set domain-search option for dhcp4

James Sumners JamesSumners at clayton.edu
Mon Feb 20 17:42:32 UTC 2017


I can tell you that it does have to be in encoded binary format — http://kea.isc.org/ticket/5087




On February 20, 2017 at 12:32:33 PM, Olivier Clavel (olivier.clavel at gmail.com<mailto:olivier.clavel at gmail.com>) wrote:

Hello everyone.

Sorry to come here with a question that seems so basic. Unfortunately, I can't find the way to set the domain-search option correctly sent back to the dhcp4 client. This is what I've tried so far with the result.

1)
"option-data": [ {"name": "domain-search", "data": "clavel.loc"} ]

Kea refuses to start with following errors.

2017-02-18 15:25:53.899 ERROR [kea-dhcp4.dhcp4/3379] DHCP4_PARSER_FAIL failed to create or run parser for configuration element subnet4: option data does not match option definition (space: dhcp4, code: 119): unable to cast clavel.loc to binary data type: attempt to decode a value not in base16 char set (/etc/kea/kea-dhcp4.conf:337:51)
2017-02-18 15:25:53.899 ERROR [kea-dhcp4.dhcp4/3379] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp4.conf, reason: option data does not match option definition (space: dhcp4, code: 119): unable to cast clavel.loc to binary data type: attempt to decode a value not in base16 char set (/etc/kea/kea-dhcp4.conf:337:51)
2017-02-18 15:25:53.900 ERROR [kea-dhcp4.dhcp4/3379] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp4.conf': option data does not match option definition (space: dhcp4, code: 119): unable to cast clavel.loc to binary data type: attempt to decode a value not in base16 char set (/etc/kea/kea-dhcp4.conf:337:51)


2)
"option-data": [ {"name": "domain-search", "data": "636C6176656C2E6C6F63"} ]
"option-data": [ {"name": "domain-search", "data": "636C6176656C2E6C6F63"}, "csv-format": false ]

In both cases, the server starts correctly but then the following error appears in dhcp client:

Invalid domain list.
suspect value in domain_search option - discarded


Is there some part of the doc I missed ? Thanks in advance for your answers.

_______________________________________________
Kea-users mailing list
Kea-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170220/609141ee/attachment.htm>


More information about the Kea-users mailing list