I need to test a few websites on my local network.
I've already setup a DNS server with bind9 for my internet domains, and that works.
I can also add a few domains to the /etc/hosts file, so I can test various sites with virtual name based hosting on the local machine.
Now, I've to test various browsers, which means I will be on various machines (e.g. Windows for IE testing).
I don't want to always have to edit the hosts file on these machines. I want to use the dns server to centrally administer the domains, and just put the DNS server into each machines' config.
How can I add this DNS server to my Ubuntu 12.04 machine, so the lookup order goes like this:
- hosts file
- MY dns-server
- ISP dns-server
What I want to do is add www.something.tld or to the DNS-server, and then be able to test these domains from every computer in the local network that uses this dns server (windows, linux).
The thing is, I don't have www.something.tld registered, this is just for testing purposes. To make sure everything really works.
Basically, I want to resolve a custom domain name or host name to a 192.168.1.x address.
Where do I have to put my DNS server for that ?