I'm going to start this off with a quick, yes this is similar to many other questions, but I have a very specific question related to how to configure bind9 which doesn't seem to have been covered else where.
This is my situation:
- We have a bunch of dev machines behind a firewall.
- The dev machines have no external access.
- All programmers are on a vpn that gives them access to the dev machines.
I'd like to have a way to allow multiple 'dev' DNS records, without messing around with our public DNS records.
Broadly speaking this is my plan:
- Run a DNS server on the dev network
- Have all programmers have a pair of DNS servers defined on their local network configs
So it'd work like this; I have a bunch of dev dns entries, eg.
*.dev.mysite1.com -> vpn ip *.dev.mysite2.com -> vpn ip
However, since the client machines have two DNS entries defined, they will chain the request and requests for www.mysite1.com, etc. will resolve to the normal (public) dns server.
How do you setup bind so that it will resolve a subdomain (eg. dev.mysite.com) but will not resolve any other subdomains (eg. www.mysite.com)?
This is probably trivial to do, but after installing bind and creating a zone file, things seem to not be working?
What should my named.conf.local file / specific zone file look like to resolve a specific subdomain, but not the entire domain?
Edit: Yes, I saw Overriding some DNS entries in BIND for internal networks, but I was sort of hoping there was a way to do this easily using bind...