NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
OneMist8k
Mar 10, 2016Aspirant
Trying to understand router settings for DHCP & DNS server (noob question) WNR3500L
We have an external DHCP and DNS server. The Netgear router has DHCP turned off. The clients are all Windows machines.
Using the IPCONFIG /ALL on the command line of a windows client on the network, everything is working as (I think) it should.
Default Gateway...: 192.168.0.1
DHCP Server.......: 192.168.0.5
DNS Servers.......: 192.168.0.5
All good. Now I'm trying to understand why!
Under menu Basic->Network, the "IP Address" shows 192.168.0.1, which is where the Gateway IP address is coming from. My question is: How does the router know the IP address of the DHCP & DNS?
Under menu option Basic->DDNS, the "Dynamic DNS" drop-down menu is selected to "Use External IP address Checker (every 10 minutes)". No IP address is listed. "Dynamic DNS 1" and "Dynamic DNS 2" are both set to "None".
Under menu option Advanced->DHCP DNS, the "Use Internal DNS" is checked, "Prevent DNS-rebind attacks" is checked. That is all. No IP addresses listed anywhere.
Finally, I thought maybe it was getting it from menu "Advanced->Routing" where the Static Routing Table is set up as:
Destination...: 192.168.0.5
Gateway........ 192.168.1.1
Subnet Mask.... 255.255.255.0
Metric......... 1
Interface...... LAN
Description.... SBS2003
Since the IP address of the destination is the DHCP / DNS server (192.168.0.5), one would think that is how the router is getting the DNS/DHCP IP address, right? But wait... the IP address of the Gateway is incorrect. It says 192.168.1.1 but I know the Gateway should be (and is verified by the NSLOOKUP) 192.168.0.1. The IP address in Basic->Network->LAN is in conflict with the setting here in Advanced->Routing->Gateway.
So what gives? Is the value of the "Gateway" setting here ignored? Is the whole section ignored, including "Destination"? If so, then how is the DHCP server discovered?
Just tryin' to understand...
Thanks in advance.
OneMist8k wrote:We have an external DHCP and DNS server. The Netgear router has DHCP turned off. The clients are all Windows machines.
Using the IPCONFIG /ALL on the command line of a windows client on the network, everything is working as (I think) it should.
Default Gateway...: 192.168.0.1
DHCP Server.......: 192.168.0.5
DNS Servers.......: 192.168.0.5
All good. Now I'm trying to understand why!
Under menu Basic->Network, the "IP Address" shows 192.168.0.1, which is where the Gateway IP address is coming from. My question is: How does the router know the IP address of the DHCP & DNS?
The router doesn't need to know. When you disable the DHCP server on the router, this relinquishes the router from the responsibility of assigning IP addresses to clients as well as providing the default gateway and DNS server addresses to those same clients. The local DHCP server on your network assumes those responsibilities.
Under menu option Basic->DDNS, the "Dynamic DNS" drop-down menu is selected to "Use External IP address Checker (every 10 minutes)". No IP address is listed. "Dynamic DNS 1" and "Dynamic DNS 2" are both set to "None".
Can you provide a screenshot? I don't see this mentioned anywhere in the documentation. You can either upload a screenshot by clicking on the little icon that looks like a mountain with a moon in the sky or upload it to an image hosting site, like imgur.com, and including a link.
Under menu option Advanced->DHCP DNS, the "Use Internal DNS" is checked, "Prevent DNS-rebind attacks" is checked. That is all. No IP addresses listed anywhere.
Can you include a screenshot of this, too?
Finally, I thought maybe it was getting it from menu "Advanced->Routing" where the Static Routing Table is set up as:
Destination...: 192.168.0.5
Gateway........ 192.168.1.1
Subnet Mask.... 255.255.255.0
Metric......... 1
Interface...... LAN
Description.... SBS2003
Since the IP address of the destination is the DHCP / DNS server (192.168.0.5), one would think that is how the router is getting the DNS/DHCP IP address, right? But wait... the IP address of the Gateway is incorrect. It says 192.168.1.1 but I know the Gateway should be (and is verified by the NSLOOKUP) 192.168.0.1. The IP address in Basic->Network->LAN is in conflict with the setting here in Advanced->Routing->Gateway.
So what gives? Is the value of the "Gateway" setting here ignored? Is the whole section ignored, including "Destination"?
This static route is entirely unusable because the gateway address, 192.168.1.1, is not even in the subnet of your router's LAN.
As I mentioned above, the router doesn't need to know the address of the DHCP server. It just routes (and NATs, too). Clients will find the DHCP server without the assistance of the router by broadcasting DHCP requests. The DHCP server will see and respond to these requests.
4 Replies
OneMist8k wrote:We have an external DHCP and DNS server. The Netgear router has DHCP turned off. The clients are all Windows machines.
Using the IPCONFIG /ALL on the command line of a windows client on the network, everything is working as (I think) it should.
Default Gateway...: 192.168.0.1
DHCP Server.......: 192.168.0.5
DNS Servers.......: 192.168.0.5
All good. Now I'm trying to understand why!
Under menu Basic->Network, the "IP Address" shows 192.168.0.1, which is where the Gateway IP address is coming from. My question is: How does the router know the IP address of the DHCP & DNS?
The router doesn't need to know. When you disable the DHCP server on the router, this relinquishes the router from the responsibility of assigning IP addresses to clients as well as providing the default gateway and DNS server addresses to those same clients. The local DHCP server on your network assumes those responsibilities.
Under menu option Basic->DDNS, the "Dynamic DNS" drop-down menu is selected to "Use External IP address Checker (every 10 minutes)". No IP address is listed. "Dynamic DNS 1" and "Dynamic DNS 2" are both set to "None".
Can you provide a screenshot? I don't see this mentioned anywhere in the documentation. You can either upload a screenshot by clicking on the little icon that looks like a mountain with a moon in the sky or upload it to an image hosting site, like imgur.com, and including a link.
Under menu option Advanced->DHCP DNS, the "Use Internal DNS" is checked, "Prevent DNS-rebind attacks" is checked. That is all. No IP addresses listed anywhere.
Can you include a screenshot of this, too?
Finally, I thought maybe it was getting it from menu "Advanced->Routing" where the Static Routing Table is set up as:
Destination...: 192.168.0.5
Gateway........ 192.168.1.1
Subnet Mask.... 255.255.255.0
Metric......... 1
Interface...... LAN
Description.... SBS2003
Since the IP address of the destination is the DHCP / DNS server (192.168.0.5), one would think that is how the router is getting the DNS/DHCP IP address, right? But wait... the IP address of the Gateway is incorrect. It says 192.168.1.1 but I know the Gateway should be (and is verified by the NSLOOKUP) 192.168.0.1. The IP address in Basic->Network->LAN is in conflict with the setting here in Advanced->Routing->Gateway.
So what gives? Is the value of the "Gateway" setting here ignored? Is the whole section ignored, including "Destination"?
This static route is entirely unusable because the gateway address, 192.168.1.1, is not even in the subnet of your router's LAN.
As I mentioned above, the router doesn't need to know the address of the DHCP server. It just routes (and NATs, too). Clients will find the DHCP server without the assistance of the router by broadcasting DHCP requests. The DHCP server will see and respond to these requests.
- OneMist8kAspirant
Ah, that explains that part. Thank you.
So now I'm concerned about the DNS server settings. From the command line of a windows client on the network the NSLOOKUP website command returns the IP address of the Windows server. So my question is the same regarding DNS: How does the network find the DNS server, if as you say, the static route is unusable? The first DNS "hop" is supposed to be the local DNS server, but I don't see it on the routing table in the router configuration.
Attached are the screenshots you requested. I've attached a few extra.
Part of the IPCONFIG command from a windows client:
Basic -> DDNS
Advanced -> DHCP/DNS
Top half of Advanced -> Routing
Bottom half of Advanced -> Routing (static routing table entry is in both shots).
NSLOOKUP yahoo.com (from Windows client on the network)
Again, thank you so much for helping me understand the config. You've been extremely helpful.
OneMist8k wrote:Ah, that explains that part. Thank you.
So now I'm concerned about the DNS server settings. From the command line of a windows client on the network the NSLOOKUP website command returns the IP address of the Windows server. So my question is the same regarding DNS: How does the network find the DNS server, if as you say, the static route is unusable? The first DNS "hop" is supposed to be the local DNS server, but I don't see it on the routing table in the router configuration.
The address of the DNS server is typically provided by the DHCP server. It's important to understand that DHCP doesn't exist solely to assign IP addresses to hosts. Hosts can use DHCP to learn all kinds of information about the network they are attached to. See the Wikipedia article for a list of the many options available in DHCP (link). Most of them are seldom used, but basic information like host IP address, gateway address, DNS server address(es) and, sometimes, WINS server address(es) are pretty common.
It looks like you are running Shibby Tomato. Correct? If so, it has a very powerful DNS and DHCP server called DNSmasq. It should be able to do everything that a Windows-based DNS server can do and then some. It's also fantastically complicated. :smileyhappy: