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

    DNS Forwarder Issues

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 4 Posters 2.6k 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.
    • D Offline
      DNS_Newbie
      last edited by

      Hi there.

      I'm running pfsense 2.0.1 to manage vpn connection and dhcp leases for my offices LAN. Additionally, I have enabled dns forwarding so as to get domain requests to our specific developer machines to resolve. To better explain this….i'm using a combination of a cron script and host-name naming conventions to generate a host file to be used with the "addn-hosts" advanced setting.

      This works perfectly, when i nslookup coworker_name.porduct_domain (so, sarah.statsapplication.com), i get pointed at that co-workers machine, and their in development pages load like a dream:

      nslookup sarah.statsapplication.com
      Server: 192.168.1.1
      Address: 192.168.1.1#53

      Name: sarah.statsapplication.com
      Address: 192.168.1.199

      However, I restarted the router at some point and then all of the sudden domains not within that hostfile (ie google.com) could not be found:
      nslookup cool.com
      Server: 192.168.1.1
      Address: 192.168.1.1#53

      ** server can't find cool.com.localdomain: REFUSED

      Needless to say, access to our coworkers in progress sites is not worth loosing access to addresses in the WAN so to speak. Again, i want to reiterate that this was working just fine until there was need of a reboot.

      1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator
        last edited by

        "** server can't find cool.com**.localdomain**: REFUSED"

        That is not a public tld, so unless you were authoritative for that, IE had records created for that tld .localdmain then yeah your going to have issues trying to lookup stuff in anything.localdomain

        cool.com.localdomain
        Server:  pfsense.local.lan
        Address:  192.168.1.253

        *** pfsense.local.lan can't find cool.com.localdomain: Non-existent domain

        That you got refused tells me you got forwarded to something that REFUSED your query.

        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 25.07.1 | Lab VMs 2.8.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • D Offline
          DNS_Newbie
          last edited by

          Well, one thing i definitely don't understand is why "localdomain" was added to the string, as the command i ran was "nslookup cool.com"

          1 Reply Last reply Reply Quote 0
          • B Offline
            bryan.paradis
            last edited by

            add log-queries to Services ->DNS Forwarder -> Advanced then save.
            do same nslookup again and paste your Status -> System Logs -> Resolver

            ![2014-02-22 17_36_57-pfsense.localdomain - Services_ DNS forwarder.png](/public/imported_attachments/1/2014-02-22 17_36_57-pfsense.localdomain - Services_ DNS forwarder.png)
            ![2014-02-22 17_36_57-pfsense.localdomain - Services_ DNS forwarder.png_thumb](/public/imported_attachments/1/2014-02-22 17_36_57-pfsense.localdomain - Services_ DNS forwarder.png_thumb)

            1 Reply Last reply Reply Quote 0
            • D Offline
              DNS_Newbie
              last edited by

              actually, i got it fixed by adding a dns server in System > General Setup, guess that when it had been working before it was cause the dns setting had stuck around from before my setting of a static ip on the wan interface. or something.

              Thanks

              1 Reply Last reply Reply Quote 0
              • B Offline
                bryan.paradis
                last edited by

                @DNS_Newbie:

                actually, i got it fixed by adding a dns server in System > General Setup, guess that when it had been working before it was cause the dns setting had stuck around from before my setting of a static ip on the wan interface. or something.

                Thanks

                No dns server would be a problem. Good work

                1 Reply Last reply Reply Quote 0
                • P Offline
                  phil.davis
                  last edited by

                  @DNS_Newbie:

                  Well, one thing i definitely don't understand is why "localdomain" was added to the string, as the command i ran was "nslookup cool.com"

                  These days many systems (like Windows) append your local domain to name that you ask for, if the raw name is not found. This helps people type in short names inside their organisation and get success
                  e.g. you work in myorg.org and type in server1.branchoffice - server1.branchoffice gets NXDOMAIN - the system then tries server1.branchoffice.myorg.org for you, and success! Saved you typing the whole FQDN.
                  So when your general name server services are not working properly, you will get the client trying with ".myorg.org" ".localdomain" appended, and thus see seemingly confusing messages like that.

                  As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                  If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.