public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/31413] New: getaddrinfo: DNS resolution fails if a CNAME target begins with a hyphen
@ 2024-02-26 10:42 manuel at mozilla dot com
  2024-02-26 10:43 ` [Bug network/31413] " manuel at mozilla dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: manuel at mozilla dot com @ 2024-02-26 10:42 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 31413
           Summary: getaddrinfo: DNS resolution fails if a CNAME target
                    begins with a hyphen
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: manuel at mozilla dot com
  Target Milestone: ---

Clone of Firefox Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1870497

> User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
> 
> Steps to reproduce:
> 
> Set up the following DNS records:
> 
> www1.test A 192.0.2.1
> _www2.test A 192.0.2.1
> www3._www3.test A 192.0.2.1
> www_4.test A 192.0.2.1
> -www5.test A 192.0.2.1
> www6.-www6.test A 192.0.2.1
> 
> cname1.test CNAME www1.test
> cname2.test CNAME _www2.test
> cname3.test CNAME www3._www3.test
> cname4.test CNAME www_4.test
> cname5.test CNAME -www5.test
> cname6.test CNAME www6.-www6.test
> 
> Open all of the "cname1" to "cname6" hostnames as URLs in Firefox.
> 
> Actual results:
> 
> The "cname5" hostname returns "Server Not Found".
> 
> The other names can be resolved and Firefox will connect to them.
> 
> Expected results:
> 
> All of "cname1" to "cname6" can be resolved and Firefox will connect to them.
> 
> The hostnames used in CNAME targets (or chains of CNAME targets) should not be subject to the same validation as the hostname in the URL.

In Firefox on Linux we use glibc getaddrinfo to resolve hostnames. I think
fixing this in glibc would be best.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-27 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 10:42 [Bug network/31413] New: getaddrinfo: DNS resolution fails if a CNAME target begins with a hyphen manuel at mozilla dot com
2024-02-26 10:43 ` [Bug network/31413] " manuel at mozilla dot com
2024-02-26 21:31 ` fw at deneb dot enyo.de
2024-02-27 11:07 ` fw at deneb dot enyo.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).