Post

Copy DNS from pfSense unbound to windows

copy dns from pfsense unbound to windows

This script will assist in moving from unbound DNS on pfSense to Windows Server DNS. It parses the backup XML pfSense creates and creates A and CNAME records in the windows DNS zone. Steps:

  1. backup pfSense config to XML.
  2. prep zone on windows server (if new)
  3. run script into memory, call function Import-pfSUnDNS

see example in comments

Once complete, you can remove all unbound DNS records and redirect/stub to windows DNS servers, or update hosts DNS servers.

This post is licensed under CC BY 4.0 by the author.