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

Olivier Clavel olivier.clavel at gmail.com
Mon Feb 20 17:32:15 UTC 2017


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170220/de8f5011/attachment.htm>


More information about the Kea-users mailing list