[clug] Two networks, separate DNS: Fake Root?

Alex Satrapa grail at goldweb.com.au
Wed May 19 17:46:30 MDT 2010


Just a quickie: I have two networks to connect to - one is a desktop lab consisting of an OpenWRT hosting its own DNS, with a bunch of lab equipment that I want to talk to, the other is the network I share with other computers and it's through this that I get to the Internet.

In this environment, it would be nice if "host www.example.com" would resolve "real world" addresses, while "host equipmentX.lan" would resolve desktop lab addresses.

Routing is already taken care of with a pretty simple routing table, but the DNS library only wants to talk to one host for DNS requests.

Is there a way I can manipulate the DNS tables (I'm using dnsmasq at the moment) to fake a root server which says "for the '.lan' TLD, talk to that server, for everything else ask the normal server"?

Perhaps I need to go work on my DNS-fu =(

Alex



More information about the linux mailing list