Re: [Hampshire] DNS lookup and VPNs

Top Page
Author: Andy Smith
Date:  
To: hampshire
Subject: Re: [Hampshire] DNS lookup and VPNs

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x56921100.hantslug.org.uk.13509': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Wed Feb 6 14:40:33 2008 GMT
gpg: using DSA key 2099B64CBF15490B
gpg: Can't check signature: No public key
Hi Hugo,

On Wed, Feb 06, 2008 at 02:28:41PM +0000, Hugo Mills wrote:
>    Thus, the main question is: Can I tell my laptop to use one DNS
> server for a specific subdomain, but use the DNS server provided by
> DHCP for all other domains?


I believe you can *almost* do this by use of forward zones, but for
anything but the forward zones the queries would then go out to the
DNS roots as usual.

zone "carfax.org.uk" {
        type forward;
        forwarders {
                10.2.0.18;
        };
};


> i.e. looking up carfax.org.uk use 10.2.0.18
>      looking up darksatanic.net use 10.2.0.18
>      looking up anything else, use whatever DHCP told me to use.


If you absolutely must use the resolvers provided by DHCP instead of
your own resolver, then perhaps you could rig the dhcp client to run
a script that puts the IPs of the nameservers into some file that
bind can read in as its forwarders, and then reloads bind? (and keep
127.0.0.1 as your resolver in /etc/resolv.conf)

Cheers,
Andy

--
http://bitfolk.com/ -- No-nonsense VPS hosting
Encrypted mail welcome - keyid 0x604DE5DB

My words are my own and do not represent Jacqui Caren.