I'm having troubles setting up a LAN DNS server.
I have multiple devices on a network and I would like my domain name to work on the LAN via any of those devices.
The DNS server resides on the same machine as my webserver, a mac mini with Snow Leopard. When I remotely connect via ssh using the LAN IP address, in order to check the DNS, both forward and reverse lookups worked, using the commands "nslookup", "dig", "dscacheutil", and "host" (though I had to remove the entry in the hosts file in order to have it give off the same address as nslookup and dig).
All other DNS look ups are to be done by the DNS servers specified automatically in my modem.
My router is an ASUS RT-N53 and my modem is a Prestige 660ME-61. So far, I have tried adding the DNS server to the DHCP settings on the router, but if I refresh Safari on an iOS device, it will no longer resolve to the correct node, even though it worked after a reboot (the only way to flush the dns cache in iOS).
The domain only works for a short time on my laptop before it switches to the public IP address, which sends me to my modem's web interface. I have NAT loopback enabled, which I had to do through telnet, and tried bridge mode, which disabled my Internet access.
The server gets its address via DHCP, which is a reserved address. When I looked at the DNS servers on my Mac, my router's LAN IP came before the DNS server's LAN IP, just like it comes before the modem's LAN IP address. I cannot have it come first on the list unless I edit the DNS server settings.
As there are more portable devices accessing this network, it would be best to avoid manually plugging in the DNS server IPs. As for the server, nothing needs to be changed since the only DNS server it recognizes is on the loopback IP address, as I edited the DNS server setting there to have that as its only DNS server lookup.