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

    TinyDNS bulk import?

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 1 Posters 2.6k Views
    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.
    • I
      Itwerx
      last edited by

      Hi all,

      Trying to bulk import a few hundred records.  Can vi and manually paste them into the /etc/tinydns/root/data file but can't get them into the data.cdb file.  Make returns an error, tinydns-data appears to run but doesn't actually work.  I can add records through the web GUI just fine but don't want to hand enter hundreds of them!  Anybody deal with this already?  Am I missing something?

      1 Reply Last reply Reply Quote 0
      • I
        Itwerx
        last edited by

        So if anybody is wondering, (saw the read stats incrementing there for awhile).
           - Make wasn't working because pfSense doesn't have it by default
           - tinydns-data actually was working but…
           - changes weren't being accepted because the tinydns package under pfSense actually populates the local /etc/tinydns/root/data and data.cdb files from /conf/config.xml

        Now if I just had a convenient script to convert the normal tinydns data file into XML that could be dropped into config.xml I'd be set. 
           Anybody have one handy?  :)

        1 Reply Last reply Reply Quote 0
        • I
          Itwerx
          last edited by

          So gave up on finding a good script, (probably none exist since the XML is pfSense specific), and since I don't have time to write one myself just did bulk edits via spreadsheet, text editor and XML editor then pasted into /conf/config.xml.  Nothing blew up, seems to be fine.  Maybe put this in as a feature request?

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