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

    PFSense DNS cannot resolve outlook.ha.office365.com properly

    Scheduled Pinned Locked Moved DHCP and DNS
    11 Posts 6 Posters 1.1k 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.
    • T
      tdixler
      last edited by

      I am getting a ton of DNS resolution errors in my logs

      DNS format error from 172.16.0.1#53 resolving outlook.ha.office365.com/HTTPS for 172.16.0.121#54136: Name trafficmanager.net (SOA) not subdomain of zone office365.com -- invalid response

      172.16.0.1 is my PFSense box and when I did a test to resolve this specific name it's not giving the right results compared to what Google's public DNS server (8.8.8.8) is giving.

      Full disclosure, I am running PFblocker on PFSense. I'm not seeing any issues with any other domain resolution except this one. Does anyone know why this is not resolving properly with the PFSense DNS resolver?

      generic-hostname:~# nslookup outlook.ha.office365.com 172.16.0.1
      Server: 172.16.0.1
      Address: 172.16.0.1#53

      Non-authoritative answer:
      Name: outlook.ha.office365.com
      Address: 52.96.79.130
      Name: outlook.ha.office365.com
      Address: 52.96.79.162
      Name: outlook.ha.office365.com
      Address: 52.96.163.34
      Name: outlook.ha.office365.com
      Address: 52.96.163.50
      Name: outlook.ha.office365.com
      Address: 52.96.164.162
      Name: outlook.ha.office365.com
      Address: 52.96.170.82
      Name: outlook.ha.office365.com
      Address: 52.96.191.226
      Name: outlook.ha.office365.com
      Address: 52.96.66.162
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:2852::2
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:81c::2
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:870::2
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:81d::2
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:2820::2
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:83e::2
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:284f::2
      Name: outlook.ha.office365.com
      Address: 2603:1036:304:800::2

      generic-hostname:~# nslookup outlook.ha.office365.com 8.8.8.8
      Server: 8.8.8.8
      Address: 8.8.8.8#53

      Non-authoritative answer:
      outlook.ha.office365.com canonical name = outlook.ms-acdc.office.com.
      outlook.ms-acdc.office.com canonical name = MDW-efz.ms-acdc.office.com.
      Name: MDW-efz.ms-acdc.office.com
      Address: 52.96.191.210
      Name: MDW-efz.ms-acdc.office.com
      Address: 52.96.170.82
      Name: MDW-efz.ms-acdc.office.com
      Address: 52.96.226.130
      Name: MDW-efz.ms-acdc.office.com
      Address: 52.96.79.82
      Name: MDW-efz.ms-acdc.office.com
      Address: 2603:1036:304:870::2
      Name: MDW-efz.ms-acdc.office.com
      Address: 2603:1036:304:284d::2
      Name: MDW-efz.ms-acdc.office.com
      Address: 2603:1036:304:2853::2
      Name: MDW-efz.ms-acdc.office.com
      Address: 2603:1036:304:81c::2

      M johnpozJ 2 Replies Last reply Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @tdixler
        last edited by

        @tdixler turn off pfblocker. can you resolve the name?

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

        1 Reply Last reply Reply Quote 0
        • T
          tdixler
          last edited by

          I disabled PFBlocker and it didn't change anything. That single domain is the only one that is not resolving properly. It's receiving an invalid response from PFSense's resolver.

          DNS format error from 172.16.0.1#53 resolving outlook.ha.office365.com/HTTPS for 172.16.0.200#49608: Name trafficmanager.net (SOA) not subdomain of zone ha.office365.com -- invalid response

          Is there a specific option in the resolver config that may be causing this?

          M 1 Reply Last reply Reply Quote 0
          • M
            michmoor LAYER 8 Rebel Alliance @tdixler
            last edited by

            @tdixler are you configured for dns resolver or dns forwarder?

            Firewall: NetGate,Palo Alto-VM,Juniper SRX
            Routing: Juniper, Arista, Cisco
            Switching: Juniper, Arista, Cisco
            Wireless: Unifi, Aruba IAP
            JNCIP,CCNP Enterprise

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

              @tdixler said in PFSense DNS cannot resolve outlook.ha.office365.com properly:

              to what Google's public DNS server (8.8.8.8) is giving.

              Why would you think they have to be the same? That is hosted off a CDN. They have lots of IPs that can be used for that specific FQDN. You also then have responses based on the source of the query and your location - so it points you to the closest one for where you at.

              When you query 8.8.8.8 your doing a query to a anycast address, your not exactly sure which server - and where its located will respond..

              So you have a IP A that does query for some fqdn, and then you have a different IP B (google) that resolves that IP from different part of the world or country your in - and guess what some different IPs might be returned.

              Here you have my vps in the Netherlands doing the query, then on the right you have my local unbound doing it from the states.. I would expect that they could come back with different IPs.

              geo.jpg

              edit: So that first IP.. from my vps that is over in the EU... When I ping that first IP look at the response time, vs when I ping that same IP from my connection here in the states..

              See the response time difference.

              ping.jpg

              this is another problem with forwarding - you might not get the response you should be getting for what part of the world you in.. And you might be talking to a server way farther from you than it should be for whatever service your trying to use..

              When I ping the IP that state resolver gets from eu vps - the times reverse.. EU is longer, states is shorter.

              nextgeo.jpg

              When you host stuff in the cloud, like these services by MS, or AWS or Cloudflare or Akamai you would expect to get back slightly different IPs based upon where you query comes from..

              Notice the TTL in the ping response, this tells you how many hops away that IP is.. The lower that number the more hops away that IP is from where you pinging it..

              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
              • GertjanG
                Gertjan @michmoor
                last edited by

                @michmoor said in PFSense DNS cannot resolve outlook.ha.office365.com properly:

                @tdixler are you configured for dns resolver or dns forwarder?

                Both give me the same results :

                C:\Users\gwkro>nslookup outlook.ha.office365.com 8.8.8.8
                Serveur :   dns.google
                Address:  8.8.8.8
                
                DNS request timed out.
                    timeout was 2 seconds.
                Réponse ne faisant pas autorité :
                Nom :    LHR-efz.ms-acdc.office.com
                Addresses:  2603:1026:c06:149c::2
                          2603:1026:500:60::2
                          2603:1026:c06:141a::2
                          2603:1026:c06:1405::2
                          52.97.219.210
                          52.97.211.66
                          52.97.133.130
                          52.97.212.98
                Aliases:  outlook.ha.office365.com
                          outlook.ms-acdc.office.com
                
                C:\Users\gwkro>nslookup outlook.ha.office365.com 192.168.1.1
                Serveur :   pfSense.my-pfsense-network.net
                Address:  192.168.1.1
                
                Réponse ne faisant pas autorité :
                Nom :    CDG-efz.ms-acdc.office.com
                Addresses:  2603:1026:c0a:8b6::2
                          2603:1026:c0a:1835::2
                          2603:1026:c0a:853::2
                          2603:1026:c0a:1834::2
                          40.99.220.146
                          40.99.217.66
                          52.98.224.178
                          40.99.153.130
                Aliases:  outlook.ha.office365.com
                          outlook.ms-acdc.office.com
                

                Look the same to me.

                And yes, I'm using pfblockerng-devel with some DNSBL feeds.
                I never add DNSBL without manual inspection first, as it would be hilarious to use 'microsoft' products that need 'microsoft' host names to function correctly, and then block the access to 'microsoft' by selecting DNSBL that contain 'microsoft' hos names.

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

                T 1 Reply Last reply Reply Quote 0
                • T
                  tdixler @Gertjan
                  last edited by

                  @gertjan

                  I did some additional research on this specific error in my log and it means that the client tried to query (Check Domain name outlook.ha.office365.com, and type as HTTPS), but due to the domain zone setting being configured wrong, it displays the error I'm seeing.

                  The DNS Server checked the name server of the zone office365.com, to try and resolve "outlook.ha.office365.com/HTTPS", but in the end, the name server replied to the DNS Server and said that there's no such HTTPS record, and the zone that it managed is trafficmanager.net.

                  It seems like it's because there's a name server configured a CNAME to the subdomain of " trafficmanager.net".

                  I'm going to try and contact Microsoft and send this information to them as I'm positive a lot of Office 365 users are experiencing this same problem

                  bingo600B ahking19A 2 Replies Last reply Reply Quote 0
                  • bingo600B
                    bingo600 @tdixler
                    last edited by bingo600

                    @tdixler

                    I'm seeing the same error.
                    But here it is my bind9 (linux) reporting the error, on a request made from pfSense Unbound (192.168.11.1) , i'm 95% sure the request originates from SWMBO's work phone (WiFi), as they use Office 356 & Outlook.

                    Dec  3 14:08:28 linux named[22754]: DNS format error from 13.107.206.240#53 resolving outlook.ha.office365.com/TYPE65 for client 192.168.11.1#12072: Name trafficmanager.net (SOA) not subdomain of zone ha.office365.com -- invalid response
                    Dec  3 14:08:28 linux named[22754]: DNS format error from 13.107.222.240#53 resolving outlook.ha.office365.com/TYPE65 for client 192.168.11.1#12072: Name trafficmanager.net (SOA) not subdomain of zone ha.office365.com -- invalid response
                    Dec  3 14:08:28 linux named[22754]: DNS format error from 13.107.206.240#53 resolving outlook.ha.office365.com/TYPE65 for client 192.168.11.1#53826: Name trafficmanager.net (SOA) not subdomain of zone ha.office365.com -- invalid response
                    Dec  3 14:08:28 linux named[22754]: DNS format error from 13.107.222.240#53 resolving outlook.ha.office365.com/TYPE65 for client 192.168.11.1#53826: Name trafficmanager.net (SOA) not subdomain of zone ha.office365.com -- invalid response
                    

                    /Bingo

                    If you find my answer useful - Please give the post a 👍 - "thumbs up"

                    pfSense+ 23.05.1 (ZFS)

                    QOTOM-Q355G4 Quad Lan.
                    CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                    LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tdixler @bingo600
                      last edited by

                      @bingo600

                      I sent all the information to domains@microsoft.com which is the email address associated with trafficmanager.net. The good news is Microsoft owns that domain so hopefully they will take the information and fix the DNS misconfiguration on their side. I am positive every Office365 subscriber is generating these errors in their logs, it just so happens I run my own DNS server and it was bugging me enough to do the research. Hopefully Microsoft will fix the entry and all of our errors will go away.

                      1 Reply Last reply Reply Quote 0
                      • ahking19A
                        ahking19 @tdixler
                        last edited by

                        @tdixler

                        Check Domain name outlook.ha.office365.com, and type as HTTPS<<

                        HTTPS is not a valid DNS query type. Valid query types are - A, AAAA, CNAME, MX, NS, etc)

                        Are you confusing with DNS-over-HTTPS (DoH)?

                        bingo600B 1 Reply Last reply Reply Quote 0
                        • bingo600B
                          bingo600 @ahking19
                          last edited by bingo600

                          @ahking19 said in PFSense DNS cannot resolve outlook.ha.office365.com properly:

                          @tdixler

                          Check Domain name outlook.ha.office365.com, and type as HTTPS<<

                          HTTPS is not a valid DNS query type. Valid query types are - A, AAAA, CNAME, MX, NS, etc)

                          Are you confusing with DNS-over-HTTPS (DoH)?

                          Hmmm ... See:
                          https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https-01#section-12.2

                          Right now it seems like Apple IOS > 14.x, is using this type of queries.

                          Yddrfff .... DoH bypassing (resolver selection) 😠
                          https://support.opendns.com/hc/en-us/articles/360049861971-DNS-Resolver-Selection-in-iOS-14-and-macOS-11

                          If you find my answer useful - Please give the post a 👍 - "thumbs up"

                          pfSense+ 23.05.1 (ZFS)

                          QOTOM-Q355G4 Quad Lan.
                          CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                          LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

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