Philip Tellis wrote:

> Set your own machine as the first dns server.  Your real dns server will
> be the secondary dns. It works in some cases.

You could instead setup a local forwarding DNS server that calls out to
the real server. That way it'll timeout immediately when you're offline.
Setting up is easy. Just use this for your /etc/named.conf (this is my
copy):

---------------------------------------------------------------------
// generated by named-bootconf.pl

options {
        directory "/var/named";
        forward only;
        forwarders {
                198.9.200.100;
                202.54.1.30;
        };
        /*
         * 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;
};

// 
// Boot file for name server
// 
// type         domain                  source          file
zone "." {
        type hint;
        file "named.root";
};

// Zone boot information and daemon options are kept in other files
// (autoincluded from boot.zones)
// 
// Name server zone boot file
// See named(8) for syntax and further information
// 
// type         domain                  source          file
// (autoincluded from boot.options)
// 
// Options for name server
// Use `bindconfig' to automatically configure this file
// 
// type         domain                  source          file
zone "localhost" {
        type master;
        file "named.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "named.rev-local";
};

// Custom configurations below (will be preserved)
------------------------------------------------------------------

Note that you can have only two forwarders. Any more and they'll be
ignored. I use the first for my local DNS server which works only for
the local network, and the second for Internet resolutions.

-- 

Kiran Jonnalagadda
http://lunateks.com

baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/'; sync;
sync; sleep 15; done

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to