Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913720 - rsync.europe.gentoo.org: doesn't include any IPv6 addresses, or addresses from rsync.nl/rsync.de/rsync.uk
Summary: rsync.europe.gentoo.org: doesn't include any IPv6 addresses, or addresses fro...
Status: RESOLVED FIXED
Alias: None
Product: Mirrors
Classification: Unclassified
Component: Feature Request (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mirror Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-06 15:34 UTC by Sam James
Modified: 2023-11-27 22:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-06 15:34:31 UTC
From https://bugs.gentoo.org/889664#c1
"""
So that's 3 out of 11 mirrors that actually work.  Also, there's no IPv6 addresses in here.  Oddly enough, rsync.europe doesn't include for instance the address used in rsync.nl, rsync.de or rsync.uk.
"""
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2023-11-26 22:03:07 UTC
Fixing this properly in the DNS records requires refactoring.

Instead of repeating the A/AAAA records each time, and having to update multiple places, we should move each *mirror* into a include file, and then just repeat as needed.

That covers the A/AAAA as well, and keeping TXT records so users can transparently map.


Rough working:

include/rsync/$CC/rsync$N:
_contact.@ IN TXT "..."
@ IN A 1.2.3.4
@ IN AAAA ...


main files:
zones/$CC.gentoo.org:
$INCLUDE include/rsync/$CC/rsync$N rsync$N.$CC.gentoo.org.
$INCLUDE include/rsync/$CC/rsync$N rsync$CC.gentoo.org.

zones/$REGION.gentoo.org:
$INCLUDE include/rsync/$CC/rsync$N rsync.$REGION.gentoo.org.


outcome:
_contact.rsyncN.CC.gentoo.org IN TXT
rsyncN.CC.gentoo.org IN A
rsyncN.CC.gentoo.org IN AAAA
_contact.rsync.CC.gentoo.org IN TXT
rsync.CC.gentoo.org IN A
rsync.CC.gentoo.org IN AAAA
_contact.$REGION.gentoo.org IN TXT
rsyncN.$REGION.gentoo.org IN A
rsyncN.$REGION.gentoo.org IN AAAA
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2023-11-27 22:48:21 UTC
Should be better now.

$ dig rsync.europe.gentoo.org IN AAAA

; <<>> DiG 9.16.42 <<>> rsync.europe.gentoo.org IN AAAA
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65070
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;rsync.europe.gentoo.org.	IN	AAAA

;; ANSWER SECTION:
rsync.europe.gentoo.org. 300	IN	AAAA	2a01:55e0::a1f
rsync.europe.gentoo.org. 300	IN	AAAA	2a01:4f8:140:5123::2
rsync.europe.gentoo.org. 300	IN	AAAA	2001:690:2100:80::6
rsync.europe.gentoo.org. 300	IN	AAAA	2a01:8740:ffff:fffc::11
rsync.europe.gentoo.org. 300	IN	AAAA	2a00:1828:2000:128::10

;; AUTHORITY SECTION:
europe.gentoo.org.	86400	IN	NS	ns1.gentoo.org.
europe.gentoo.org.	86400	IN	NS	ns3.gentoo.org.
europe.gentoo.org.	86400	IN	NS	ns2.gentoo.org.
europe.gentoo.org.	86400	IN	NS	ns4.gentoo.org.

;; Query time: 598 msec
;; SERVER: XXX
;; WHEN: Mon Nov 27 14:48:00 PST 2023
;; MSG SIZE  rcvd: 264