Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to develop my own dynamic DNS. I'm running my own custom DNS for the subdomain on port 5353. ASCII diagram:

INET --->:53 Bind 9 --->:5353 node.js

I have The node.js DNS is for

In my /etc/bind/named.conf.local I have:

zone "" {
    type master;
    file "/etc/bind/";
    allow-transfer {

zone "" IN {
    type forward;
    forwarders { port 5353; };
    forward only;

I've even gone so far as to add a NS in my zone file:

$TTL    86400
@   IN  SOA (
            2013070104  ; Serial
               7200     ; Refresh
               1200     ; Retry
            2419200     ; Expire
              86400 )   ; Negative Cache TTL
        NS  ns                    ; inet of our nameserver

ns      A

; NS record for subdomain
dyn     NS  ns

When I attempt to get a record from the subdomain server it doesn't get forwarded:

dig @

However if I turn recursive on in /etc/bind/named.conf.options:

options {
  recursion yes;

.. then I CAN see the request going to the subdomain server.

But I don't want recursion yes; in my Bind configuration as it is poor security practice (and allows all-and-sundry requests that are not related to my managed zones).

How does one forward (proxy) zone queries for just one zone? Or do I give up on Bind altogether and find a DNS server that can actually forward specific queries?

share|improve this question
When you get a chance, can you accept my answer so that this no longer shows up on the list of unanswered question? – Andrew B Nov 3 '14 at 17:17

This cannot be done. Query forwarding is a form of recursion, and this is behaving as expected.

You must either set up your dynamic DNS as its own discrete nameserver, or perform zone transfers off of it.

share|improve this answer
f@#$ - looks like I'm going to have to write my own nameserver from scratch. – PP. Jul 9 '13 at 9:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.