• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

DNS Forwarder Configuration Problem [Solved]

Scheduled Pinned Locked Moved DHCP and DNS
3 Posts 2 Posters 736 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    zoe
    last edited by Jun 12, 2017, 1:34 PM Jun 12, 2017, 12:58 PM

    Hi everyone

    I'm having a problem configuring DNS forwarder and i could really need some help
    I have DHCP service enabled in LAN interface

    LAN DHCP: 192.168.0.40-192.168.0.50
    LAN GW : 192.168.0.1

    So 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.1

    I 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.1

    Name:    test.example.com
    Address:  192.168.0.41

    What am i missing in my configuration?
    Please feel free to ask for any configuration and i'll post back with settings

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Jun 12, 2017, 1:18 PM

      "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.

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • Z
        zoe
        last edited by Jun 12, 2017, 1:34 PM

        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

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received