Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9599

Windows workaround for checkdnsrr() returns wrong results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.8-RC1
    • 3.0.7-PL1
    • Other
    • None
    • Windows Vista

      The windows workaround in phpbb_checkdnsrr() performs a nslookup via exec. It then assumes that valid responses begin with the hostname we're looking up. This however doesn't seem to be true when looking up A records.

      C:\Users\afischer>nslookup -type=A phpbb.com.
      Server:  fi-network.fischer.local
      Address:  10.100.0.254
       
      Nicht-autorisierende Antwort:
      Name:    phpbb.com
      Address:  140.211.15.9
      

      C:\Users\afischer>nslookup -type=ANY phpbb.com.
      Server:  fi-network.fischer.local
      Address:  10.100.0.254
       
      Nicht-autorisierende Antwort:
      phpbb.com       internet address = 140.211.15.9
      phpbb.com       nameserver = ns3.auth.osuosl.org
      phpbb.com       nameserver = ns1.auth.osuosl.org
      phpbb.com       nameserver = ns2.auth.osuosl.org
       
      phpbb.com       nameserver = ns2.auth.osuosl.org
      phpbb.com       nameserver = ns1.auth.osuosl.org
      phpbb.com       nameserver = ns3.auth.osuosl.org
      ns1.auth.osuosl.org     internet address = 140.211.166.140
      ns2.auth.osuosl.org     internet address = 140.211.166.141
      ns3.auth.osuosl.org     internet address = 216.165.191.53
      

      C:\Users\afischer>nslookup -type=MX phpbb.com.
      Server:  fi-network.fischer.local
      Address:  10.100.0.254
       
      Nicht-autorisierende Antwort:
      phpbb.com       MX preference = 5, mail exchanger = smtp2.osuosl.org
      phpbb.com       MX preference = 5, mail exchanger = smtp3.osuosl.org
      phpbb.com       MX preference = 5, mail exchanger = smtp4.osuosl.org
      phpbb.com       MX preference = 5, mail exchanger = smtp1.osuosl.org
       
      phpbb.com       nameserver = ns1.auth.osuosl.org
      phpbb.com       nameserver = ns2.auth.osuosl.org
      phpbb.com       nameserver = ns3.auth.osuosl.org
      ns1.auth.osuosl.org     internet address = 140.211.166.140
      ns2.auth.osuosl.org     internet address = 140.211.166.141
      ns3.auth.osuosl.org     internet address = 216.165.191.53
      

      C:\Users\afischer>nslookup -type=AAAA www.fsmi.uni-karlsruhe.de.
      Server:  fi-network.fischer.local
      Address:  10.100.0.254
       
      Nicht-autorisierende Antwort:
      Name:    fsmi-www.fsmi.uni-karlsruhe.de
      Address:  2a00:1398:4000::acff:fe16:3ba2
      Aliases:  www.fsmi.uni-karlsruhe.de
      

      C:\Users\afischer>nslookup -type=NS phpbb.com.
      Server:  fi-network.fischer.local
      Address:  10.100.0.254
       
      Nicht-autorisierende Antwort:
      phpbb.com       nameserver = ns2.auth.osuosl.org
      phpbb.com       nameserver = ns3.auth.osuosl.org
      phpbb.com       nameserver = ns1.auth.osuosl.org
       
      ns1.auth.osuosl.org     internet address = 140.211.166.140
      ns2.auth.osuosl.org     internet address = 140.211.166.141
      ns3.auth.osuosl.org     internet address = 216.165.191.53
      

      C:\Users\afischer>nslookup -type=CNAME phpbb.com.
      Server:  fi-network.fischer.local
      Address:  10.100.0.254
       
      phpbb.com
              primary name server = ns1.auth.osuosl.org
              responsible mail addr = hostmaster.osuosl.org
              serial  = 1273685403
              refresh = 3600 (1 hour)
              retry   = 900 (15 mins)
              expire  = 604800 (7 days)
              default TTL = 86400 (1 day)
      

            bantu Andreas Fischer [X] (Inactive)
            bantu Andreas Fischer [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: