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

    Internal DNS borks when WAN goes down

    Scheduled Pinned Locked Moved DHCP and DNS
    10 Posts 7 Posters 3.2k 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.
    • Y Offline
      yaxattax
      last edited by

      Hi,

      I have this problem whereby if the WAN interface loses connectivity (but is still "up"), then reverse DNS lookups for internal network addresses are really slow, causing problems for me to log into machines remotely using SSH. I don't know what information is relevant to provide, but if someone could assist me in troubleshooting this, I would be grateful.

      Cheers,

      Yax

      1 Reply Last reply Reply Quote 0
      • C Offline
        craigduff
        last edited by

        Can you give me some info on your network? Do they use domain controllers with Windows or is it all Linux based? What are the primary and secondary DNS being used?

        Kind Regards,
        Craig

        1 Reply Last reply Reply Quote 0
        • Y Offline
          yaxattax
          last edited by

          Hi,

          My network is composed principally of linux machines. I have a windows workstation. I am using the pfSense DNS forwarder and then primary and secondary DNS servers provided by my ISP, as well as 8.8.8.8 (third in list).

          Cheers,

          Yax

          1 Reply Last reply Reply Quote 0
          • S Offline
            SeventhSon
            last edited by

            Is the name of your box also provided by DHCP?

            You might want to look at setting that manually, and disable overriding DNS by DHCP

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

              So your waiting for dns to timeout on a reverse lookup of your local network address (private space)?  Why don't you just run local dns for your local name space and provide PTR records – this way you will be able to look them up as your suppose to, and won't matter if you have external connectivity or not.

              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.8, 24.11

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yaxattax
                last edited by

                Sorry, could you elaborate?

                According to

                By default localhost (127.0.0.1) will be used as the first DNS server where the DNS forwarder is enabled, so system can use the DNS forwarder to perform lookups. Checking this box omits localhost from the list of DNS servers.

                (unchecked)

                What you stated should not be occurring?

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  I have the exact same problem, recently my ADSL went down, and my local DNS started to go really slow and wondered why..

                  I have a bridged modem / ADSL what is on my WAN interface.
                  I am using the DNS forwarder for local DNS.

                  If I manually remove all DNS entries in general settings in pfsense, and I remove the WAN cable, local DNS is fast.

                  If there are DNS entries in general settings, and I remove the WAN cable, local DNS is slow.

                  I don't understand why this is happening, as 127.0.0.1 is always at the top of the DNS list.

                  Why are public domain servers being queried for local domains what are listed in the DNS forwarder? Maybe thats not the problem… ?

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    joako
                    last edited by

                    I have noticed the same. WAN affects the local DNS. I have IP phones with a hostname for the server like: pbx.local. If WANs go down then phones stop to register to the server, which is local.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      serangku
                      last edited by

                      same here …

                      maybe some expert can give other direction ?

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

                        "If there are DNS entries in general settings, and I remove the WAN cable, local DNS is slow."

                        Give example of this..  So

                        If I query my local dns (pfsense) for a local address.

                        
                        C:\Windows\System32>dig @192.168.1.253 i5-w7.local.lan
                        
                        ; <<>> DiG 9.9.1-P3 <<>> @192.168.1.253 i5-w7.local.lan
                        ; (1 server found)
                        ;; global options: +cmd
                        ;; Got answer:
                        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49489
                        ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
                        
                        ;; QUESTION SECTION:
                        ;i5-w7.local.lan.               IN      A
                        
                        ;; ANSWER SECTION:
                        i5-w7.local.lan.        1       IN      A       192.168.1.100
                        
                        ;; Query time: 5 msec
                        ;; SERVER: 192.168.1.253#53(192.168.1.253)
                        ;; WHEN: Mon Oct 08 02:02:40 2012
                        ;; MSG SIZE  rcvd: 49
                        
                        

                        how is it slow if your wan is down.. So I unplug connection from cable modem - pfsense has NO wan connection, and

                        
                        C:\Windows\System32>dig @192.168.1.253 i5-w7.local.lan
                        
                        ; <<>> DiG 9.9.1-P3 <<>> @192.168.1.253 i5-w7.local.lan
                        ; (1 server found)
                        ;; global options: +cmd
                        ;; Got answer:
                        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45643
                        ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
                        
                        ;; QUESTION SECTION:
                        ;i5-w7.local.lan.               IN      A
                        
                        ;; ANSWER SECTION:
                        i5-w7.local.lan.        1       IN      A       192.168.1.100
                        
                        ;; Query time: 4 msec
                        ;; SERVER: 192.168.1.253#53(192.168.1.253)
                        ;; WHEN: Mon Oct 08 02:05:09 2012
                        ;; MSG SIZE  rcvd: 49
                        
                        

                        so asking for another address

                        
                        C:\Windows\System32>dig @192.168.1.253 current.local.lan
                        
                        ; <<>> DiG 9.9.1-P3 <<>> @192.168.1.253 current.local.lan
                        ; (1 server found)
                        ;; global options: +cmd
                        ;; Got answer:
                        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15888
                        ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
                        
                        ;; QUESTION SECTION:
                        ;current.local.lan.             IN      A
                        
                        ;; ANSWER SECTION:
                        current.local.lan.      1       IN      A       192.168.1.220
                        
                        ;; Query time: 5 msec
                        ;; SERVER: 192.168.1.253#53(192.168.1.253)
                        ;; WHEN: Mon Oct 08 02:05:49 2012
                        ;; MSG SIZE  rcvd: 51
                        
                        

                        This is all with pfsense wan disconnected, except for the first query..  So show example where your slow.

                        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.8, 24.11

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