[Bug 232380] freebsd-update: fails to find mirror if nameserver converts update.FreeBSD.org to lowercase

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 18 12:40:24 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232380

            Bug ID: 232380
           Summary: freebsd-update: fails to find mirror if nameserver
                    converts update.FreeBSD.org to lowercase
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs at FreeBSD.org
          Reporter: pi at FreeBSD.org

This happens on FreeBSD-11.0-p16:                                               

# freebsd-update -r 11.2-RELEASE upgrade                                        
src component not installed, skipped                                            
Looking up update.FreeBSD.org mirrors... none found.                            
Fetching metadata signature for 11.0-RELEASE from update.FreeBSD.org... failed. 
No mirrors remaining, giving up.                                                

The reason is that per default, freebsd-update asks for update.FreeBSD.org,     
but the nameserver returns it in lower-case:                                    

host -t srv _http._tcp.update.FreeBSD.org                                       

returns:                                                                        

_http._tcp.update.freebsd.org has SRV record 1 50 80 update1.freebsd.org.       
_http._tcp.update.freebsd.org has SRV record 1 35 80 update4.freebsd.org.

The sed after the host-query only matches upper-case:                           

host -t srv _http._tcp.update.FreeBSD.org |                                     
sed -nE "s/_http._tcp.update.FreeBSD.org (has SRV record|server selection)
//p"|
            cut -f 1,2,4 -d ' ' |                                               
            sed -e 's/\.$//' |                                                  
            sort                                                                

so it returns a empty list.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list