In Windows, when I select static IP (instead of DHCP-assigned one) I have to enter the IP address for DNS servers. Is there a way to manually set IP address yet obtain the DNS addresses from the DHCP server?
Windows – Can DHCP provide DNS addresses when IP is static
dhcpdnsipwindows
Related Solutions
First, using 127.0.0.1 AND the DHCP-assigned DNS server won't work. If OS X has multiple DNS servers configured, it doesn't try them in sequence, it does something more like round robin -- sending different requests to different servers more or less at random. Net result: some of the lookups you wanted handled by dnsmasq will go to the regular server instead (and get the wrong result), and some that you wanted sent to the regular server will go to dnsmasq (and fail). Not good.
Telling dnsmasq to use the DHCP-provided DNS server might be possible, but I don't see a clean way to do it. Instead, what I'd recommend is using a DNS config that overrides the regular DNS config for the domains you want specially handled. There are two options for this:
- Skip dnsmasq, and put the hosts you want specially handled into /etc/hosts (see this article, for example).
- Use /etc/resolver/ files to direct queries for specific domains to 127.0.0.1, overriding the general (DHCP-supplied) DNS server (see the man page for /etc/resolver and this Mac OS X Hints article. Essentially, you create the /etc/resolver folder, and put a file in it for each domain you want to override. E.g. /etc/resolver/somedomain.com would contain "nameserver 127.0.0.1".
Networking – Netgear DHCP server doesn’t provide the inputted dns servers to the connecting computer
You're misunderstanding what the router is doing and the pages you're seeing.
"LAN SETUP"
This page simply configures your LAN.
IP Address: This is the IP of your router as seen by your LAN - "the gateway". Subnet: This is the subnet that your LAN devices will be put on
DHCP: Start-End range - this is the "pool" of addresses your DHCP server will give out to connecting LAN devices. You can give your LAN devices "static" addresses if you prefer, but they must be outside of the start and end numbers given here, and within the number of IPs available inside the subnet you have chosen.
"BASIC SETTINGS" (Your Internet settings page)
The IP and DNS settings configured here are what your router uses to connect to the Internet - the settings have nothing to do with your LAN.
When a computer on your LAN makes a request to "the Internet" is forwards the request to the router -> the router checks to see if the request can be completed on the LAN -> if the request can't be completed on the LAN it sends the request to its gateway (your ISP and, thus, the Internet) and uses the DNS IPs given on the page.
ANSWER
What you're trying to do (send all your LAN devices the DNS IPs from your router) cannot be done using the router you have. To "push" DNS addresses to your LAN requires more advanced router equipment.
It seems you have a problem with either your ISP modem or the router itself...
Best Answer
No, this is not possible. You can either use static or dynamic configuration, not both.
However most DHCP server allow you to assign an IP address to a specific MAC address. This way the client gets the IP (and things like DNS server etc.) from the DHCP server but it will always be the same. You can set this in the configuration of you DHCP server.