DHCP Option 119 Encoder

Domain Search List

Many DHCP servers will not encode a domain search list for you, instead requiring you to encode it on your own and place the hex in some ungodly corner of their user interface. Here, I offer a client-side script to at least perform the former.

Enter the domains in your search list in the box below and click "Encode". Domains should be separated by spaces. E.g., google.com yahoo.com.

Error:

Encode Reset


Result

Here is an example that creates a new option, and appends it to an OptionSet. You must then add this OptionSet to your DHCP server configuration. If you later want to change this value, adjustments would be needed to the below:

/ip dhcp-server option
add code=119 name=domain-search value=""
/ip dhcp-server option sets
add name=domain-search-set options=domain-search

Raw option value:

(I'm not sure how to do this, please open a PR if you have better instructions)

ip dhcp pool POOL_NAME
    option 119 hex

Raw option value:

(I'm not sure how to do this, please open a PR if you have better instructions)

netsh dhcp server V4 set optionvalue 119 BYTE

Raw option value:

(I'm not sure how to do this, please open a PR if you have better instructions)

set access address-assignment pool POOL_NAME family inet \
dhcp-attributes option 119 hex-string

Raw option value:

(I'm not sure how to do this, please open a PR if you have better instructions)

ip dhcp pool POOL_NAME option 119 hex

Raw option value:

Hex:


Decode

Enter a hex or Mikrotik input string here to decode the domain search list

Error:

Decode Reset


Result