On Fri, 12 Apr 2002, Suresh Ramasubramanian wrote:

> +++ Shashi Shekhar S [linux-india] <11/04/02 23:57 +0530>:
> > Correct me if I'm wrong! 
> > But you could put DNS of both the ISPs into /etc/resolv.conf and configure 
> > DNS for caching, so that it will do the same thing (forwarding DNS 
> > queries) and also cache the entries ! right ?
> 
> Yes.  If both ISPs are idiot enough to allow recursive querying for those
> outside their IP blocks.
> 
>       --srs
> 

sorry for the long mail

i have caching name server 
caching-nameserver-7.2 installed on
redhat 7.2 enigma

my resolve.conf is 

nameserver 127.0.0.1

now my /etc/named.conf has 
following configuration.

// generated by named-bootconf.pl

options {
        directory "/var/named";
        forward first;
        /*
        dsn for cable
        */
        forwarders { 202.164.96.1 ; 203.196.73.5 ; 203.200.45.2; };
        /// 

        can i add one more line here puting three more dsn addresses
        for my ISDN connection, which is from different ISP

        forwarders { 203.115.117.1 ; 203.115.112.2 ; 203.115.112.75 ; };

        can these two forwarders be together ? 
        if yes, how bind will know that if ISDN connection is running it has to 
forward from second forwarders ? 

        right now i am using a script which replace forwarders and then restart named 
service...

        i havent configure bind beyod this because my primary concern to configure 
bind is to 
        jump between name servers. i set gatway and dsn in all other machine to 
192.168.1.1 which 
        is this machine .. now i have to jump between isps only from this machien .

        do i have to modify section below which is a caching only nameserver config ??

        ///
        listen-on { 192.168.1.1 ; 127.0.0.1; };
        allow-query { 192.168.1.0/24 ; 127.0.0.1; };
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;
};

// 
// a caching only nameserver config
// 
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

include "/etc/rndc.key";


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to