Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Migrating existing dnsmasq into pfSense

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 551 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      linuxha
      last edited by

      I have a large number of devices in my current dnsmasq.

      How do I 'dump' that into pfSense?

      Or do I have to add that into the dnsmasq config via the web interface?

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        You might be able to just add it to the custom config field directly depending how it's formatted.

        Or possibly by referencing another file there.

        Ideally you would add it to the pfSense config, you might be able to add it to the xml file directly after some adjustment.

        But there is no config import tool to do that.

        Steve

        L 1 Reply Last reply Reply Quote 1
        • L Offline
          linuxha @stephenw10
          last edited by

          @stephenw10 I've found the entries in the /cf/config.xml. I think I can write up a python script to add the dnsmasq dhcp-host to xml. I'll need to play a bit to make sure I get it correct (and keep a backup, of course).

          Thanks

          1 Reply Last reply Reply Quote 1
          • L Offline
            linuxha
            last edited by

            I've created a script to convert the dnsmasq.conf dhcp-host to XML to insert into the config file. I then read it in with vi. It's mostly manual. I also told the dns to include the static dhcp entries. I can now resolve the local names and I hope the DHCP works. I won't know for a few hours.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.