PowerShell script to assist with ISC DHCP to DNSMasq DHCP migration

Started by badbroccoli, May 25, 2025, 06:25:45 PM

Previous topic - Next topic


Greetings all,

I recently wrote a PowerShell script to assist with migrating my OPNSense implementation from ISC DHCP to DNSMasq DHCP and wanted to share it here in case it can help anyone else.

The script ingests an OPNSense backup XML and converts the enabled ISC DHCP and DHCPv6 scopes into DNSMasq ranges and creates DNSMasq host entries for each ISC static mapping found in the enabled scopes. Currently it also adds NTP Server and Domain options for the ranges if they are configured in the ISC scopes.

Happy to review pull requests / issues if there are any improvements that can be made to make this more widely beneficial.

Cheers!

https://github.com/dreary-ennui/Convert-OPNSenseISCDHCPtoDNSMasqDHCP