Here's an encoder for DHCP Option 119, which sends domain search lists to clients. Many DHCP server implementations do not encode this option for you, instead expecting the administrator to do it. This repo provides a quick, browser-based encoder so you don't need to roll your own script or even fire up Powershell/Python.
Here are some references that helped to build this:
- A blog post describing the process to add this option to Mikrotik RouterOS.
- Another blog post
- A useful post on the Mikrotik forums
- A similar python script (that lacks back-pointers)
The RFC's:
- 3397 Dynamic Host Configuration Protocol (DHCP) Domain Search Option
- 1035 DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION S 4.1.4 Message compression
The code here is licensed under GPL v3+.