DNS Forwarder Configuration Problem [Solved]
-
Hi everyone
I'm having a problem configuring DNS forwarder and i could really need some help
I have DHCP service enabled in LAN interfaceLAN DHCP: 192.168.0.40-192.168.0.50
LAN GW : 192.168.0.1So my first machine connected to the LAN and got this configuration
ip:192.168.0.41
subnet : 255.255.255.0
gateway: 192.168.0.1I enabled the DNS Forwarder and added a static entry in the configuration, host=test, domain=example.com and applied the changes
In the windows client , when trying to nslookup the above host i get an answer from the DNS that i use in the WAN interface and not from the Local DNS from pfsense
C:\Users\user>nslookup test.example.com
Server: google-public-dns-a.google.com.
Address: 8.8.8.8*** google-public-dns-a.google.com can't find test.example.com: Non-existent domain
and of course when trying to ping the host i get
C:\Users\user>ping test.example.com
Ping request could not find host test.example.com. Please check the name and try again.The strange thing is that when i use the Local DNS i get the correct answer
C:\Users\user>nslookup test.example.com 192.168.0.1
Server: pfSense.example.com
Address: 192.168.0.1Name: test.example.com
Address: 192.168.0.41What am i missing in my configuration?
Please feel free to ask for any configuration and i'll post back with settings -
"What am i missing in my configuration?"
Your client is using google for its dns.. Make sure your client is set to get its dns from dhcp vs hard coded. Or you have a different dhcp setup that your client its getting its dhcp from. Simple ipconfig /all will tell you where it got its dhcp from.
-
Hi and thanks for the immediate response
Just before the comment i did an ipconfig /all to make sure of the DNS configuration and for some reason, maybe forgotten from previous troubleshooting, indeed i had static configuration in the IPV4 DNS section, i changed it automatically use the DHCP settings and i can now get the correct response :-)
Thank you so much, you were right and my problem is solved