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.
Thank you for the pi hole suggestion. I'll look into that.
QUESTION: Can someone direct me to a HOWTO for in-home DNS?
The last time I had this working, I used a small army of /etc/host file updates and fixed IP addresses for the in-house devices. Now that most devices go walk-about, DHCP rules the day.
I"d love to have fixed IP at home and DHCP in the wild. I haven't discovered how to do that... yet.
QUESTION: Will I need to change LAN Gateway settings for this to work properly?
Currently, my gateway router is the LAN "gateway" IP address. I do not have any sort of DMZ.
I have not played with Pi-hole but it uses a forked version of dnsmasq and can be configured as a DHCP server.
You can configure your devices to use a fixed IP address from the DHCP server by setting up an address reservation. This is typically accomplished using the MAC address and assigning an IP address that is outside the DHCP address range. Pretty much all SOHO routers now days support address reservations.
If you use the Pi-hole or other dnsmasq server you will need to turn off the DHCP server on the router and set a gateway address on the dnsmasq server that points to the router's address.
That works because dnsmasq will add the the static clients in the /etc/hosts to its local dns records. You need to configure your clients with static ip addresses or just rely on the dhcp server to always assigning the same address to the same client. On a small lan and a big dhcp address pool that should work but not 100% guaranteed. Then all you need to do is change the router's settings for your clients to use the Pi-hole as DNS server.
That works because dnsmasq will add the the static clients in the /etc/hosts to its local dns records. You need to configure your clients with static ip addresses or just rely on the dhcp server to always assigning the same address to the same client. On a small lan and a big dhcp address pool that should work but not 100% guaranteed. Then all you need to do is change the router's settings for your clients to use the Pi-hole as DNS server.
When you say, " configure your clients with static IP addresses " are you talking about the gateway-router feature that maps a client MAC address to a LAN IP address? My router insists that the target IP addresses lie inside the configured DHCP space.
Readings elsewhere online suggest that I configure clients outside of the DCHP space. Doesn't that mean I configure each client at the client? I don't know any way to do that for phones and tablets. Only some of my IOT devices have a way to set the IP address if not DHCP.
Thanks for the reply, but I'm confused,
~~~ 0;¬/ Dan
are you talking about the gateway-router feature that maps a client MAC address to a LAN IP address?
Yes, setting address reservations for dnsmasq DHCP server and isc-dhcp-server as far as I know are outside of the DHCP pool whereas SoHo router's address reservations tend to be within the pool. You should not have to set a static IP address on the device itself. Iphones and Androids mobile devices tend to have the automatic MAC changers on by default now days which makes which makes using address reservations or /etc/hosts as posted difficult on purpose.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.