I am happily using an old PC as a router. Two network cards, Debian wheezy, NAT, ... everything just fine. My home network uses static IPs, which I am also happy with.
However, every box on my home network needs my provider's name servers in its own
/etc/resolv.conf file for the internet to work. I thought this would be the way to go, but I notice that when using a notebook on a commercial router, the
/etc/resolv.conf file gets overwritten once I
dhclient to the router, and just the router's own IP address is listed, no external name servers.
I figure that (1) the only way for this to work is that the router has some way of accepting the clients' name resolving requests and passes them on to the provider's name servers and (2) this is actually a quite handy solution because it would allow me to just put my router's IP into any client's
/etc/resolv.conf and not worry about telling each client my provider's name servers.
Are these assumptions (1, 2) correct?
Is this a feature buried in DHCP requiring my router to be a DHCP server, or would it work with static IPs, too?
What do I need to configure on my router in order to enable forwarding/handling my clients' name server requests?