View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Tue Jul 27, 2010 4:20 am Post subject: BIND question |
|
|
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 |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Tue Jul 27, 2010 8:54 am Post subject: |
|
|
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 |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 474 Location: San Diego, California USA
|
Posted: Tue Jul 27, 2010 8:45 pm Post subject: |
|
|
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 |
|
|
|