[Bug network/33804] New: resolv: duplicate queries if search contains root '.'

carlospeon at gmail dot com sourceware-bugzilla@sourceware.org
Fri Jan 16 11:18:08 GMT 2026


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

            Bug ID: 33804
           Summary: resolv: duplicate queries if search contains root '.'
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: carlospeon at gmail dot com
  Target Milestone: ---

The same query is performed twice under some contidions:

* The domain name has enough dots to be queried 'as is'.
* The 'as is' response is NXDOMAIN
* The search list contains root domain '.'

e.g.: LOCALDOMAIN="." RES_OPTIONS="ndots:1" ./gethostbyname null.example.org

Two alternative patches were submitted to address it:

https://patchwork.sourceware.org/project/glibc/patch/20251218113556.159662-1-carlospeon@gmail.com/

https://patchwork.sourceware.org/project/glibc/patch/20251218113654.159774-1-carlospeon@gmail.com/

Regards,
Carlos.

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


More information about the Glibc-bugs mailing list