Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to setup a new TLD (foo.) for my the private network so that I can host some child domains which will be accessible from within the network. For this purpose I have setup a DNS server (172.16.100.1) for foo.. For this I created a zone file foo-zonedb.rr with the following records:

$ORIGIN foo.
$TTL  100
@       IN  SOA ns1.tld.foo. hostmaster.tld.foo (
                2012030701
                900
                300
                300
                600
        )
@    300 IN NS ns1.tld.foo.
@    300 IN  A 172.16.143.197
ns1.tld.foo.    300 IN A 172.16.143.197

And also I have added the following entries in /etc/named.conf

zone "foo." {
             type master;
             file "foo-zonedb.rr";
             notify explicit;
    };

Now suppose every machine on the network uses 172.16.1.1 as their DNS server. What configuration should I have to do on 172.16.1.1 so that it won't redirect DNS request for foo. domain to root DNS servers?

share|improve this question
1  
see serverfault.com/questions/17255/… for a discussion about why using a made up TLD is possibly a bad idea. –  Tim Kennedy Aug 6 '12 at 14:58
    
@TimKennedy: but i am talking about the configuration details..the discussion on the link which u provided is totally offtopic –  pradeepchhetri Aug 6 '12 at 15:39
    
ok. just wanted to make sure you're aware of the gotcha's involved in hosting a private TLD connected to the internet. –  Tim Kennedy Aug 6 '12 at 16:32
add comment

1 Answer

type master; does what you want. if 172.16.1.1 is the authoritative server, requests will not go to the root servers. Non-existent entries will result in NXDOMAIN status.

If you want to stop all queries from forwarding to the root-servers, then you should turn recursion off. see: http://www.zytrax.com/books/dns/ch6/#authoritative

share|improve this answer
add comment

Your Answer

 
discard

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.