You are not logged in.

#1 2007-01-27 15:14:52

bartucha82
Member
Registered: 2006-11-04
Posts: 15

Bind as caching server for local network

Hi. I've set up a caching dns server with bind. It's available only from the local network and it's address is provided with dhcp (configured with dhcpd). The problem is that when dhcpd sets my dns address up and I'm trying to access a website (for. eg. google or any random site) I get "Unknown server address". But when I ping this site from my local server everything is fine and then I'm able to access the site from my computer. It's kinda weird because everything seems to be configured fine.

//
// /etc/named.conf
//
        acl moja_siec {127.0.0.1/8; 192.168.0.0/24;};
options {

        directory "/var/named";
        pid-file "/var/run/named/named.pid";
        auth-nxdomain no;
        datasize default;
        allow-recursion { 127.0.0.1; };
//      forwarders { 208.164.186.1; 208.164.186.2; };
// Uncomment these to enable IPv6 connections support
// IPv4 will still work
        listen-on { any; };
//      listen-on-v6 { any; };
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-query { moja_siec;};
        allow-transfer { any; };
        notify yes;
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "127.0.0.zone";
        allow-update { none; };
        allow-query { moja_siec;};
        allow-transfer { any; };
        notify yes;
};

zone "." IN {
        type forward;
        forward only;
        forwarders { 193.110.121.20; 194.204.159.1; 194.204.152.34; };
//      file "root.hint";
};

//      type slave;
//      file "example.zone";
//      masters {
//              192.168.1.100;
//      };
//      allow-query { any; };
//      allow-transfer { any; };
//};

Can anyone tell me what's going on???

Offline

#2 2007-01-27 16:10:04

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: Bind as caching server for local network

Try dnsmasq, it's light, fast and easy to configure


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#3 2007-01-27 16:49:22

bartucha82
Member
Registered: 2006-11-04
Posts: 15

Re: Bind as caching server for local network

But can I use dnsmasq only as caching server (without dhcp)???????

Offline

#4 2007-01-27 16:50:59

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Bind as caching server for local network

Stalwart wrote:

Try dnsmasq, it's light, fast and easy to configure

Seconded. Works a treat installed on the Arch server for our cybercafé network (mixed windows & linux pcs).

Offline

#5 2007-01-27 16:51:39

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Bind as caching server for local network

bartucha82 wrote:

But can I use dnsmasq only as caching server (without dhcp)???????

yes

Offline

#6 2007-01-28 10:14:18

bartucha82
Member
Registered: 2006-11-04
Posts: 15

Re: Bind as caching server for local network

Thank You very much. Dnsmasq works like a charm and configuration is very very easy.Perfect dns server for small networks.

Offline

Board footer

Powered by FluxBB