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

    DNS Resolver doesn't work with my university domain.

    Scheduled Pinned Locked Moved General pfSense Questions
    60 Posts 5 Posters 10.3k 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.
    • F
      Fandangos @johnpoz
      last edited by

      @johnpoz

      Ok

      [2.6.0-RELEASE][admin@pfSense.home.arpa]/root: dig @1.2.3.4 www.google.com
      
      ; <<>> DiG 9.16.23 <<>> @1.2.3.4 www.google.com
      ; (1 server found)
      ;; global options: +cmd
      ;; connection timed out; no servers could be reached
      
      [2.6.0-RELEASE][admin@pfSense.home.arpa]/root: dig @1.2.3.4 www.google.com
      
      ; <<>> DiG 9.16.23 <<>> @1.2.3.4 www.google.com
      ; (1 server found)
      ;; global options: +cmd
      ;; connection timed out; no servers could be reached
      

      without and with DNSSEC.

      d51933e0-228c-4a95-acf1-bed63487700f-image.png

      [2.6.0-RELEASE][admin@pfSense.home.arpa]/root: dig sigok.verteiltesysteme.net
      
      ; <<>> DiG 9.16.23 <<>> sigok.verteiltesysteme.net
      ;; global options: +cmd
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40230
      ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
      
      ;; OPT PSEUDOSECTION:
      ; EDNS: version: 0, flags:; udp: 512
      ;; QUESTION SECTION:
      ;sigok.verteiltesysteme.net.    IN      A
      
      ;; ANSWER SECTION:
      sigok.verteiltesysteme.net. 17  IN      A       134.91.78.139
      
      ;; Query time: 0 msec
      ;; SERVER: 127.0.0.1#53(127.0.0.1)
      ;; WHEN: Tue Sep 06 07:24:06 GMT 2022
      ;; MSG SIZE  rcvd: 71
      
      [2.6.0-RELEASE][admin@pfSense.home.arpa]/root: dig sigfail.verteiltesysteme.net
      
      ; <<>> DiG 9.16.23 <<>> sigfail.verteiltesysteme.net
      ;; global options: +cmd
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 51731
      ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
      
      ;; OPT PSEUDOSECTION:
      ; EDNS: version: 0, flags:; udp: 512
      ;; QUESTION SECTION:
      ;sigfail.verteiltesysteme.net.  IN      A
      
      ;; Query time: 0 msec
      ;; SERVER: 127.0.0.1#53(127.0.0.1)
      ;; WHEN: Tue Sep 06 07:24:21 GMT 2022
      ;; MSG SIZE  rcvd: 57
      

      but ufscar.br

      [2.6.0-RELEASE][admin@pfSense.home.arpa]/root: dig ufscar.br
      
      ; <<>> DiG 9.16.23 <<>> ufscar.br
      ;; global options: +cmd
      ;; Got answer:
      ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 6332
      ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
      
      ;; OPT PSEUDOSECTION:
      ; EDNS: version: 0, flags:; udp: 512
      ;; QUESTION SECTION:
      ;ufscar.br.                     IN      A
      
      ;; Query time: 1159 msec
      ;; SERVER: 127.0.0.1#53(127.0.0.1)
      ;; WHEN: Tue Sep 06 07:25:11 GMT 2022
      ;; MSG SIZE  rcvd: 38
      

      Servfail.
      The thing is, this is mine and my wife's university website, it's not something I can just stop using it so the solution would be just disabling DNSSEC for now?

      It looks like some problem beyond my setup from all the tests we did so far.

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

        @fandangos well the simple solution sure would just be turn off dnssec, but other option for specific domains that you need to get to, but for reason can not determine yet dnssec is failing.

        A way to allow access to that domain, and still use dnssec for other domains would be setting

        domain-insecure:

        In your advanced options box..

        so for example you see how sigfail.verteiltesysteme.net fails.. if I set that fqdn as domain-insecure it doesn't do dnssec on it and now get back an IP

        bypassdnssec.jpg

        This should allow you to get to your website, but still be doing dnssec for other sites - and work around until you can figure out what is causing the problem.

        btw does for example www.ufscar.br work?

        ;; QUESTION SECTION:
        ;www.ufscar.br.                 IN      A
        
        ;; ANSWER SECTION:
        www.ufscar.br.          14400   IN      CNAME   web-07-nova.ufscar.br.
        web-07-nova.ufscar.br.  14400   IN      A       200.136.207.122
        

        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 1
        • bmeeksB
          bmeeks @Fandangos
          last edited by

          @fandangos said in DNS Resolver doesn't work with my university domain.:

          @bmeeks

          removed pfBlockerNG-devel, disabled python.
          Went into System / General Setup, removed all DNS servers and set use local DNS only, ignore remote.
          Disabled DNS Query Forwarding in DNS Resolver.
          Because that's the way I want it to work.

          Rebooted my PC with Pfsense.
          I'm running a small BGA Intel board with 2.6.0-RELEASE.

          Went into DNS lookup and search for ufscar.br and :
          Host "ufscar.br" could not be resolved.

          If I look for google.com it will give a result in 60ms
          Result Record type
          142.250.219.46 A
          2800:3f0:4001:822::200e AAAA

          like so.

          Not sure what else to try.

          @johnpoz is the resident DNS expert here, so you are in good hands troubleshooting with his assistance.

          Reading the threads above I see that the problem has at least been isolated down to DNSSEC. In the beginning there were three possibilities: (1) DNSSEC; (2) pfBlockerNG-devel; and (3) Python Mode with unbound. By eliminating options and testing with a vanilla setup you eventually found DNSSEC as the apparent problem. Now you can concentrate efforts to figuring out why that option is failing.

          johnpozJ 1 Reply Last reply Reply Quote 2
          • GertjanG
            Gertjan @johnpoz
            last edited by Gertjan

            @johnpoz said in DNS Resolver doesn't work with my university domain.:

            @fandangos need to figure out why dnssec is failing.. I show it all good via online testing, and I am not having any problems doing dnssec for it

            https://dnssec-debugger.verisignlabs.com/ufscar.br

            https://dnsviz.net/d/ufscar.br/dnssec/

            I saw the same thing : these two looks good.
            I refreshed the latest scan on dnssec-debugger.verisignlabs.com - still all ok.

            But : I did a zonemaster.net scan :
            https://www.zonemaster.net/result/e74f48762d19101d
            and that looks messy ....

            I count about twenty "DNSKEY tags", so the zone size must be ... huge.
            Something is definitely not ok.
            The domain name admin is playing with zone ZSK resigning ? ( and oh boy, he fails ).

            If "ufscar.br" is DNSSEC singed, and it is, and DNSSEC verification fails, then all is well : "no answer" is the good answer.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 1
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @bmeeks
              last edited by johnpoz

              @bmeeks yeah could take a bit of digging to figure out why dnssec is failing, if its working for other sites, it doesn't make a lot of sense

              But maybe its not really working all that well on all other sites??

              @Fandangos maybe you should check that the time and timezone are correct or at least close to being correct..

              The RRSIG has a 2 times there, you have to be within that time frame etc.. Or dnssec would fail one is the Expiration the other is Inception of that signature.

              It could get really tricky because different NS could use say a wider range of when the signature is good, and if your time is not off too much site A works, but if maybe site B has smaller window of the time of the signature.. So it fails..

              edit: Looking at the report @Gertjan linked too - this warning jumps out at me

              "RRSIG with keytag 26184 and covering type(s) DNSKEY has a remaining validity of 17732 seconds, which is too short. "

              So if they are using really short validity ranges and time is off on pfsense that could explain the problem..

              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

              F 1 Reply Last reply Reply Quote 0
              • F
                Fandangos @johnpoz
                last edited by Fandangos

                @johnpoz

                This time situation is always problematic. I have a unraid NAS running here that suffers the same problem.

                I live near São Paulo (the city) within São Paulo the state.
                If I select America/Sao Paulo using 2.pfsense.pool.ntp.org the time is wrong by 3 hours (minus 3 hours).
                Right now is 12:00 and it shows 9:00 AM.
                I have the same behavior on my NAS using Unraid that uses another ntp pool.

                So to get the right time I have to use ETC/GMT+0 which, looking at the clock on my phone that register with the cell towers and services it is 4 minutes behind.

                So that might be the problem. There's no correct time zone to be selected and the one that is closer is 4 minutes behind.

                But.. 17732 is 289 minutes, so it's not it but it would be good to actually fix the ntp situation, I've never found a solution for this.

                EDIT:
                Even using 0.br.pool.ntp.org server in Brazil follows the same problem: 3 hours behind with America/Sao_Paulo.

                EDIT 2:
                Looking online the correct time zone for São Paulo is Etc/GMT+3, and this results in the same problem using America/Sao_Paulo, 3 hours behind. It's like if GMT is wrong.

                Does NTP`pool time uses anything within the BIOS?

                ETC/UTC timezone also gives the 4 minutes behind time zone.

                F johnpozJ 2 Replies Last reply Reply Quote 0
                • F
                  Fandangos @Fandangos
                  last edited by

                  EDIT wasn't working.

                  EDIT 3:
                  https://forum.netgate.com/topic/158490/pfsense-php-time-is-incorrect-in-america-sao_paulo-time-zone/
                  It seems somebody else saw this and it should have been fixed in 2.5 but it seems it was not.

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

                    @fandangos said in DNS Resolver doesn't work with my university domain.:

                    There's no correct time zone to be selected and the one that is closer is 4 minutes behind.

                    Huh that makes zero sense to be honest.. There are no timezones on the planet that I am aware of that are 4 minutes different.. That would be insane..

                    I know of some that are 30 minutes, and some that are 45 minutes, and I believe there is one that has 15 minute difference other than just the 0 hour differences..

                    Clearly you have something wrong with time.. But 4 minutes? That seems insane..

                    So looking up the timezone for São Paulo, and my time zone CDT, and looking on my phone, everything is pretty much dead nuts on for correct time.

                    edit: doesn't really matter what zone name you use be it +1, -3 etc.. Worse case is switch from Standard to Daylight savings could be off if zone your actually in is different than the zone you choose. But I am lost to a 4 minute difference - that should never be the case no matter what zone your in, other than just the clock being off and not in sync with a ntp server.

                    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

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      Fandangos @johnpoz
                      last edited by

                      @johnpoz
                      I know it doesn't make sense.

                      My guess is this: the bios time is wrong by 4 minutes and the NTP code only fixes the date and hours, leaving minutes and seconds up to the BIOS clock.
                      Tomorrow I'll take this PC down and check the BIOS.

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

                        @fandangos no not how it works, ntp would take it to the ms to be honest.. You got something weird that is for sure..

                        But it can take a bit to adjust the time using ntp..

                        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

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          Fandangos @johnpoz
                          last edited by

                          @johnpoz

                          ok check this out, I believe my ISP blocks port 123 or it's block NTP access:

                          39022b7c-9fa7-4e8a-9d68-2adb060480ee-image.png

                          So, my BIOS is 4 minutes behind and since Pfsense can't access the NTP servers it just changes the time zone adding or subtracting a few hours.

                          Now I used to have this problem with a FPGA system that runs linux and I used to solve this by this nice startup script in bash that sadly will not work on pfsense:

                          RET=-1
                          while [ ${RET} -ne 0 ] ; do
                            ping -c1 google.com
                            RET=$?
                            sleep 1
                          done
                          date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
                          

                          so I've found a small utility on android called Time Server that uses GPS and is able to run a server but on port 1234.
                          I wasn't able to add the port to the system like 192.168.0.20:1234 but I was able to set 192.168.0.20.
                          The error is that the : makes it a invalid ipv4 or ipv6 address.

                          I don't see on the system logs anything about a successful NTP sync with the app but now the time is correct.
                          If I look at

                          /var/etc/ntpd.conf
                          

                          It's like this:

                          # Upstream Servers
                          server 192.168.0.20 iburst maxpoll 9
                          

                          And now look what works:

                          [2.6.0-RELEASE][admin@pfSense.home.arpa]/var/log: ping ufscar.br
                          PING ufscar.br (200.136.207.122): 56 data bytes
                          64 bytes from 200.136.207.122: icmp_seq=0 ttl=55 time=18.258 ms
                          64 bytes from 200.136.207.122: icmp_seq=1 ttl=55 time=18.267 ms
                          64 bytes from 200.136.207.122: icmp_seq=2 ttl=55 time=18.256 ms
                          64 bytes from 200.136.207.122: icmp_seq=3 ttl=55 time=18.279 ms
                          ^C
                          --- ufscar.br ping statistics ---
                          

                          So it's indeed a time sync problem that prevents DNSSEC to work.

                          Also, changing to America/Sao_Paulo actually set the clock right this time, so, it was fixed in pfsense 2.5.

                          Now only if there's a way to bypass the port 123 block from my ISP so I could normally use NTP servers because honestly I don't know what exactly fixed the problem.
                          I also selected all the interfaces under NTP settings but that was it, the android server and selecting all interfaces something fixed it for now.

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            Fandangos @Fandangos
                            last edited by

                            I'm not sure what fixed it, really here I believe (not sure) is the moment that the clock was fixed:

                            8659db38-94fd-43a5-821d-fda2a19ce97c-image.png

                            maybe it has nothing to do with the android time server, I don't know.
                            The log doesn't give much info.

                            GertjanG 1 Reply Last reply Reply Quote 0
                            • GertjanG
                              Gertjan @Fandangos
                              last edited by Gertjan

                              @fandangos said in DNS Resolver doesn't work with my university domain.:

                              I don't know.
                              The log doesn't give much info.

                              I know. It looks like that.
                              But reading and understanding logs needs a learning phase ;)

                              Lines like this :

                              53d283b8-e8d7-4205-9174-ef8f1f9feefd-image.png

                              means that syncing is progress 👏

                              Hardware that uses an RTC that is some seconds off every day isn't a big deal, but if the hardware RTC can't be set using ntpd, and it start to lag behind a lot, then you have a problem.
                              Your hardware is nice for a game device, not a router/firewall.

                              If ntp can't set the hardware RTC clock, then on every boot your system clock is lagging behind even more.
                              ntpd needs time to sync back to the real time.
                              During this sync time, everything that uses 'time' can be off.
                              Like DNSSEC. And more.
                              So, consider :
                              Not rebooting pfSense ;)
                              If you reboot, set the time manually (as ntpd can brute force the time, it will go slowly).
                              And when your done with it : change hardware, with a good RTC.
                              Do check the battery, if there is one.

                              The exact time is an important resource these days.

                              This is strange :

                              818a4689-0966-4b8a-9aad-abfb52c3dbfc-image.png

                              as the ntpd should stay in memory 'all the time'.

                              No "help me" PM's please. Use the forum, the community will thank you.
                              Edit : and where are the logs ??

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                Fandangos @Gertjan
                                last edited by Fandangos

                                @gertjan

                                The thing is, it never synced before (I have this pfsense setup for months now) and now it's not syncing again.

                                If I look at Status / NTP

                                3496e4d2-d87d-4145-b3b5-71fc1217a8e3-image.png

                                It's not synchining and I've added several pools to try.

                                Here's the log for the NTP service trying several servers without any success:
                                https://pastebin.com/Hqna2gvQ [too big to post here]

                                The lan ip is the android server that is off for now.

                                I have no idea how it managed to sync that only time but as you can see something (proably my ISP) is blocking it because I see this same problem with windows server, with unraid.. and so on.

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

                                  @fandangos have you contacted your isp about this? Blocking ntp is very detrimental to proper option many things these days. You need actuate time for many things to work correctly.

                                  If they block external ntp - do you they run their own ntp you can sync with, atleast that would be something. How many isp block outbound smtp, but they provide you with a smtp server you can use, etc.

                                  edit: as a work around you could run your own ntp like you were doing off your phone. I run one via a raspberry pi and a gps hat. Total project should cost under $100.

                                  So out of curiosity what is the isp device in front of pfsense, is pfsense IP a rfc1918 address or are you getting a public IP on pfsense wan. It could be possible that maybe the isp device is doing something with ntp, and having issue natting it for clients downstream - like pfsense.

                                  I would suggest you contact your isp about not being able to talk to any ntp servers, see what they say. Its possible you will have to escalate past level 1 support to get to someone that understands what your talking about.

                                  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

                                  GertjanG F 2 Replies Last reply Reply Quote 0
                                  • GertjanG
                                    Gertjan @johnpoz
                                    last edited by Gertjan

                                    @johnpoz
                                    Yeah, I manage quiet well to even not think : "we've seen it all".
                                    But now I say it : "@Fandangos, your ISP is definitely not expensive enough" ;)

                                    Not relaying ntp ..... what's next ? Blocking https and pop, why not imap ? No ? Block SSH as it is scary.

                                    Or has 'ntp' been thrown on some s@nction list ? ( You see what I mean ?)

                                    No "help me" PM's please. Use the forum, the community will thank you.
                                    Edit : and where are the logs ??

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      Fandangos @johnpoz
                                      last edited by

                                      @johnpoz

                                      I have to give my ISP a call but talking to people inside the tech area is quite difficult.
                                      Today is a not a working day so I can't give it a call.
                                      I'll try tomorrow.

                                      And I have no idea if my ISP have a NTP service.

                                      I don't think there's such a thing as retrieved NTP service address like DNS is set by dial up PPPoE, right?

                                      GertjanG 1 Reply Last reply Reply Quote 0
                                      • GertjanG
                                        Gertjan @Fandangos
                                        last edited by Gertjan

                                        @fandangos said in DNS Resolver doesn't work with my university domain.:

                                        people inside the tech area is quite difficult.

                                        Ah, good news then : you're in Europe then ;)
                                        Don't worry. The people who can tell you what's up are not available for the muppets like me and you.
                                        We have another way to express ourselves :
                                        Old ISP => Bye !
                                        New ISP => Hi !
                                        ( but first, before you buy, do some fact checking, and don't call them to ask if they feel they are good, ask others )

                                        @fandangos said in DNS Resolver doesn't work with my university domain.:

                                        And I have no idea if my ISP have a NTP service.

                                        You don't need them for that.
                                        They 'just' need you to give a connection, and not blocking 'some' stuff.

                                        Pick your NTP pool or server from here https://www.ntppool.org/en/, or, why not, keep the default one.

                                        There is only one important setting in pfSense :
                                        This one :

                                        7229f81e-8b31-47ba-8fd5-3a5d07aa8522-image.png

                                        and you can consider to select a pool nearby. But that's optional.

                                        No "help me" PM's please. Use the forum, the community will thank you.
                                        Edit : and where are the logs ??

                                        F 1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by

                                          That's a 3h offset by my calculation (unless that includes the timezone?) which I could see being an issue for DNSSec. 4m seemed unlikely.
                                          Any sort of local server would be waaay better than 3h!

                                          F 1 Reply Last reply Reply Quote 0
                                          • F
                                            Fandangos @Gertjan
                                            last edited by

                                            @gertjan

                                            I'm located in Brazil.
                                            I've set several NTP servers, none work.
                                            I see this same behavior with several network devices on my lan.

                                            I have a FPGA board that doesn't have a RTC and it syncs the time at every boot.
                                            I use the bash script I posted earlier to bypass this.

                                            My Unraid NAS have this same problem.

                                            And my windows machine fails with windows ntp server.

                                            And I don't have many ISP options in my area that have this kind of speed I have here, which is 600 mbit down and 300 mbit up so I'll try talking to them.
                                            We have laws in Brazil that prevent port blocking as the law says all onlines services must be provided equally, it's called "marco civil da internet" here.
                                            If they don't open the port by a user request I can sue and force them to do it.

                                            Meanwhile a proxy/vpn bypass could be a solution?

                                            Or I'll try to port my bash script to pfsense shell and figure out how to run it with shell and root at startup.

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