[SOLVED] Can Netgear n900 be a DNS server for my LAN?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've replace my ASUS RT-AC66U with a Netgear n900. The ASUS acted as my LAN DNS server, but the Netgear doesn't seem to be working. On the setup page > Advance > LAN Setup, I have the MAC, IP and host name configure under Address Reservation. I have "Use Router as DNS Server" checked.
If the servers have the avahi service installed then you can get to them by adding .local to their host name.
This is Slackware 15.0 and apparently avahi isn't part of the distro.
To get by, I've added my LAN hosts to each other's /etc/hosts file. I'm beginning to think that, while the Netgear does do DNS for public domain name, it doesn't include local/LAN host names.
Well, I could also configure bind -- I've don't that before. But, as there are only 3 hosts on my LAN that need to be found by host name, it's easy enough to set them with static IPs (actually, the Netgear will do that without me having to configure the IP on the hosts), and I can make two entries in each of their /etc/host files. Easier than bind or dnsmasq set up, at this level.
I switched routers in the first place because I suspect that my ASUS is failing intermittently. I'll run with the Netgear for a while and if the network issues conclusively point to a failing ASUS, I'll buy a new router; either another ASUS or some other router that supports local DNS.
Well, I've continued to have intermittent Internet connection loss with the Netgear router, so the router isn't the problem. Today, I went to Spectrum and got a new cable modem. We'll see if that solves the problem or not.
I hooked up the ASUS router to the new cable modem and interestingly, it is not DNS resolving local host names either now. Very odd. When it was hooked up before it did so. I'll leave the entries in /etc/hosts for now. Maybe it just required time to resync tables.
I could not find anything in the ASUS RT-AC66U online manual about local DNS. It mentions a dynamic DNS service provided by Asus for remote access and setting up WAN DNS either manually or via the ISP.
Day two with no intermittent Internet outages. Apparently the older ZOOM cable modem went bad. That was not Spectrum's modem. I bought it locally at MicroCenter about 9 years ago. The new one is from Spectrum and I got it because it is supposedly free.
As to the ASUS router doing local name resolution, that's back to working now. I don't know if the servers just needed time to refresh DNS stuff or if rebooting (i.e. resetting eth0/DHCP) did it, but I no longer need all local hosts in /etc/hosts. So, that's apparently not a feature of the Netgear router.
Fingers crossed that the new cable modem solved the problem.
Four days later ... Still no intermittent failures. Running with new cable modem and original ASUS router. The problem must have been a fail[ing] cable modem. Problem solved. Plus, I know that the ASUS will act as a name server for the local hosts and the Netgear does not. Good to know.
Last edited by mfoley; 05-03-2022 at 12:34 PM.
Reason: more testing
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.