Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BIND question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Tue Jul 27, 2010 4:20 am    Post subject: BIND question Reply with quote

hi! i want to setup BIND to resolve local domain. how should i configure, that all others queries should be forwarded to ISP's DNS?
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Tue Jul 27, 2010 8:54 am    Post subject: Reply with quote

Leave the "." zone as "type hint;", only use "type master;" for your local domain, loopback ("127.in-addr.arpa") and localhost zones.
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 474
Location: San Diego, California USA

PostPosted: Tue Jul 27, 2010 8:45 pm    Post subject: Reply with quote

Here's an example BIND config that does this. Just add zone files.

Code:
logging {
        category "database" { "default_syslog"; };
        category "lame-servers" { "null"; };
        category "default" { null; };
};

acl "internal" {
        192.168.0/24;
        127/8;
        ::1/128;
};

options {
        directory "/var/bind";

        listen-on-v6 { any; };
        listen-on { any; };

        // if you have problems and are behind a firewall:
        //query-source address * port 53;
        pid-file "/var/run/named/named.pid";

        allow-recursion { internal; };

        allow-query { internal; };
        allow-query-cache { internal; };

};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "pri/localhost.zone";
        allow-update { none; };
        notify no;
};

zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
        allow-update { none; };
        notify no;
};

zone "local" IN {
       type master;
       notify no;
       file "pri/local.zone";
};
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum