Anyone using DNS-Server package?

  • I installed the DNS-Server package and I'm wondering if anyone else is using it because it doesn't seem to work for me.  I disabled the DNS forwarder and enabled DNS Servers, but no DNS queries were replied to.

    I see that that package does not have a Maintainer, so does that mean that nobody is able to help with this one?


  • Just installed it on a testing VM.  Works fine.

    Make sure you:

    1. Set the IP address of DNS Server in Settings tab
    2. Create a SOA record that points to a hostname.  IE:  SOA

    3. Createa a A record for the SOA:  A

    4. Finally, run /usr/local/etc/rc.d/ from a shell prompt after you have done so, or reboot the firewall.

    scott-ullrichs-mac-pro:tinydns sullrich$ dig @ SOA

    ; <<>> DiG 9.4.1-P1 <<>> @ SOA
    ; (1 server found)
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53535
    ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
    ;; WARNING: recursion requested but not available

    ; IN SOA

    ;; ANSWER SECTION: 2560 IN SOA 1200344638 16384 2048 1048576 2560



    ;; Query time: 3 msec
    ;; SERVER:
    ;; WHEN: Mon Jan 14 16:20:54 2008
    ;; MSG SIZE  rcvd: 109

    scott-ullrichs-mac-pro:tinydns sullrich$

  • I can't say I've had the same luck.

    Since I upgraded to RC4, and all my DNS queries seem to stop at that point, I disabled the DNS Forwarded and enabled TinyDNS.  It does act as a DNS forwarder, but does not seem to work for host entries I created.

    I did not have to follow your instruction because the SOA NS and A PTR were already there.

    The other thing I have noticed is that I cannot clear the log file.  Clicking on the "Clear Log" button on the log tab does nothing.  Log display seems to be limited to only so many lines.  If I delete the log file /etc/tinydns/log/main/current, nothing else gets added to it.

    I'm not familiar with FreeBSD.  What's the shell command to see the list of all processes currently running?  I'd like to see what DNS processes are active.

    Right now, all I'm getting is the following:

    @4000000047909b753587ed14 envuidgid: fatal: unknown account Gtinydns
    @4000000047909b76376a3dbc envuidgid: fatal: unknown account Gtinydns

  • Uninstall and reinstall the package.  That group should be installed during the package installation.

  • Thanks Scott.  I did try that and it does not seem to re-create the accounts for some reason.  I assume that the code that gets executed is the function tinydns_custom_php_install_command() in, correct?  The accounts do not seem to actually be created until the function tinydns_custom_php_changeip_command().

    Can you give me a suggestion as to how can we introduce logging to see what the result of the exec("/usr/sbin/pw useradd Gtinydns"); line is?  Shouldn't there be code to check the result of the exec?

    Also, looking at this code, I've come to understand that if you enable DNS Forwarders, tinydns will not act as a forwarder (or cache) and server at the same time on the same IP.

    One computer can run a DNS server alongside a DNS cache as long as they are on separate IP addresses. The standard setup for small networks is to put a DNS cache on a private address such as or, and a DNS server on a public address.

    So I'm learning lots here, but I wish there was somewhere for me to put that information down for others to easily learn about this.  What would be a good spot for that?

    Lastly, there is no maintainer for this package.  Do you need someone?  What are your criteria for a maintainer?


    PS:  I found an audio interview with you on BSDtalk (  It was great to hear you talk!

  • Alright, I think that I know what is going on.

    Go out to a shell and do this:

    cd /var/db/pkg && pkg_delete ls | grep tiny

    Then uninstall the package in the webConfigurator and reinstall.  This should hopefully put the accounts back in place.

    Currently I am maintaining the package but feel free to submit changes.

  • Thanks for your reply.  Unfortunately that didn't do it for me.  There must be something out of whack on my box.  The package was removed properly when I uninstalled it, so your suggested code didn't find anything to remove.

    I re-installed and this time I found /etc/dnscache/log/main/current to be filled with the line envuidgid: fatal: unknown account Gdnscache

    I added the user (/usr/sbin/pw useradd Gdnscache), but I'm confused by this whole thing.  The log is always empty but the cache log is not.  I somehow thought that the DNS cache wouldn't not be used when tinydns server was being used.

  • Click save on the settings tab.  I should have checked this out prior but it creates the user account any time you make changes to the settings or other areas of the DNS Server package.

Log in to reply