You are not logged in.
Pages: 1
What I'm trying to do is probably much easier to describe in pseudo code than anything else.
if (domain == "company.com" || subdomain("company.com")) {
nameserver = xxx.xxx.xxx.xxx;
} else {
nameserver = yyy.yyy.yyy.yyy;
}I've been playing around with /etc/resolv.conf for a while, but haven't been able to get things quite right. I'm also using for most DNS request dnsmasq running on a router, so if it's easier to handle this through dnsmasq let me know, but honestly I thought this is something I could do with resolv.conf or similar.
Offline
dnsmasq is where you want to do this. Take a look at the 'server' config option in the conf file, e.g. 'server=/example.com/10.8.0.1' will point all requests for example.com and subdomains to the DNS server running at 10.8.0.1.
Offline
Pages: 1