This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/20844] New: getaddrinfo() fails in some instances with AF_UNSPEC set


https://sourceware.org/bugzilla/show_bug.cgi?id=20844

            Bug ID: 20844
           Summary: getaddrinfo() fails in some instances with AF_UNSPEC
                    set
           Product: glibc
           Version: 2.24
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: eumen at luminarys dot com
  Target Milestone: ---

Created attachment 9652
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9652&action=edit
Example of failure

getaddrinfo()  fails with error code -2, message "Name or service not known",
when ai_family is set to AF_UNSPEC for certain hostnames, but succeeds for
AF_INET. I tested this using the hostname "outlook.office365.com".

The dig output for the domain is:
; <<>> DiG 9.11.0-P1 <<>> outlook.office365.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30287
;; flags: qr rd ra; QUERY: 1, ANSWER: 12, AUTHORITY: 7, ADDITIONAL: 12

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;outlook.office365.com.         IN      A

;; ANSWER SECTION:
outlook.office365.com.  151     IN      CNAME   lb.geo.office365.com.
lb.geo.office365.com.   216     IN      CNAME  
outlook.office365.com.g.office365.com.
outlook.office365.com.g.office365.com. 216 IN CNAME
outlook-namnorthwest.office365.com.
outlook-namnorthwest.office365.com. 269 IN A    132.245.31.226
outlook-namnorthwest.office365.com. 269 IN A    132.245.3.130
outlook-namnorthwest.office365.com. 269 IN A    132.245.80.146
outlook-namnorthwest.office365.com. 269 IN A    132.245.92.210
outlook-namnorthwest.office365.com. 269 IN A    132.245.58.98
outlook-namnorthwest.office365.com. 269 IN A    132.245.36.34
outlook-namnorthwest.office365.com. 269 IN A    132.245.88.194
outlook-namnorthwest.office365.com. 269 IN A    132.245.15.210
outlook-namnorthwest.office365.com. 269 IN A    132.245.49.2

;; AUTHORITY SECTION:
office365.com.          109420  IN      NS      ns2.msft.net.
office365.com.          109420  IN      NS      ns3.msft.net.
office365.com.          109420  IN      NS      ns1.msft.net.
office365.com.          109420  IN      NS      ns1a.o365filtering.com.
office365.com.          109420  IN      NS      ns4a.o365filtering.com.
office365.com.          109420  IN      NS      ns2a.o365filtering.com.
office365.com.          109420  IN      NS      ns4.msft.net.

;; ADDITIONAL SECTION:
ns4a.o365filtering.com. 260     IN      A       157.55.133.11
ns2.msft.net.           111581  IN      A       208.84.2.53
ns2.msft.net.           87888   IN      AAAA    2620:0:32::53
ns1.msft.net.           59      IN      A       208.84.0.53
ns1.msft.net.           59      IN      AAAA    2620:0:30::53
ns4.msft.net.           2613    IN      A       208.76.45.53
ns4.msft.net.           87949   IN      AAAA    2620:0:37::53
ns2a.o365filtering.com. 260     IN      A       157.56.116.52
ns1a.o365filtering.com. 260     IN      A       157.56.110.11
ns3.msft.net.           59      IN      A       193.221.113.53
ns3.msft.net.           59      IN      AAAA    2620:0:34::53

;; Query time: 1 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sat Nov 19 18:11:16 PST 2016
;; MSG SIZE  rcvd: 663

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]