diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-04 13:59:37 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-04 14:21:45 +0000 |
commit | 7ff07a2d4ff2b2784e9edf2fdb919f4207a49015 (patch) | |
tree | 5d4b512f46af912e0f85997bb728a96131688cc9 /main/dns-root-hints | |
parent | f4dea9432a7919106f94c00c2de3e4c35d47d586 (diff) | |
download | aports-7ff07a2d4ff2b2784e9edf2fdb919f4207a49015.tar.bz2 aports-7ff07a2d4ff2b2784e9edf2fdb919f4207a49015.tar.xz |
main/dns-root-hints: new aport
Based on tcely commit but it is reproducible
https://github.com/alpinelinux/aports/pull/5950
Diffstat (limited to 'main/dns-root-hints')
-rw-r--r-- | main/dns-root-hints/APKBUILD | 86 | ||||
-rw-r--r-- | main/dns-root-hints/named.root | 92 | ||||
-rw-r--r-- | main/dns-root-hints/named.root.sig | bin | 0 -> 72 bytes | |||
-rw-r--r-- | main/dns-root-hints/verisign-grs-nstld-key.asc | 50 |
4 files changed, 228 insertions, 0 deletions
diff --git a/main/dns-root-hints/APKBUILD b/main/dns-root-hints/APKBUILD new file mode 100644 index 0000000000..104742480c --- /dev/null +++ b/main/dns-root-hints/APKBUILD @@ -0,0 +1,86 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Contributor: tcely <dnshints-root+aports@tcely.33mail.com> +# Maintainer: tcely <dnshints-root+aports@tcely.33mail.com> +pkgname=dns-root-hints +pkgver=2019031302 +pkgrel=0 +pkgdesc="The DNS root hint(s)" +url="https://www.internic.net/domain" +arch="noarch" +license="Public-Domain" +makedepends="curl gnupg" +options="net" +source="verisign-grs-nstld-key.asc named.root named.root.sig" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + mkdir -p "$builddir" +} + +package() { + cd "$builddir" + install -D -m 644 -o root -g root "$srcdir"/named.root \ + "$pkgdir"/usr/share/$pkgname/named.root + install -D -m 644 -o root -g root "$srcdir"/named.root.sig \ + "$pkgdir"/usr/share/$pkgname/named.root.sig + install -D -m 644 -o root -g root "$srcdir"/verisign-grs-nstld-key.asc \ + "$pkgdir"/usr/share/$pkgname/verisign-grs-nstld-key.asc + + # compatibility links + cd "$pkgdir/usr/share/$pkgname" + ln -s named.root named.cache + ln -s named.root db.cache +} + +check() { + cd "$builddir" + local _awkprog=' + /related version of root zone:/ { + rootver=$NF; + if (pkgver != rootver) { + $1="ERROR:"; + print; + exit 1; + }; + printf "OK: %s\n", rootver; + quit; + }' + awk -v pkgver="$pkgver" "$_awkprog" "$srcdir"/named.root +} + +# check new versions of root hints and commit +snapshot() { + # use a temporary dir for new files + export _tmp=$(mktemp -d -p .) + for file in named.root named.root.sig; do + curl -sLR "${url}/${file}" -o "${_tmp}/${file}" + done + + # compare new and current versions + local _drh_new_ver=$(grep "related version of root zone:" ${_tmp}/named.root | egrep -o '[0-9]{10}') + local _drh_current_ver=$(grep "related version of root zone:" named.root | egrep -o '[0-9]{10}') + + # commit if new version is found + if [ "$_drh_new_ver" != "$_drh_current_ver" ]; then + check_sig + mv ${_tmp}/named.root named.root + mv ${_tmp}/named.root.sig named.root.sig + git add named.root named.root.sig + abump $pkgname-$_drh_new_ver + fi + + # cleanup + rm "${_tmp}"/* || true + rmdir "${_tmp}" +} + +check_sig() { + local GNUPGHOME="$builddir/.gpg" + install -d -m 0700 "$GNUPGHOME" + gpg --import < verisign-grs-nstld-key.asc + gpg --verify "${_tmp}/named.root.sig" "${_tmp}/named.root" +} + +sha512sums="3ecf5d66e506526ad98ea0b371202f0763b987322bd4407b40fcd95415202bddb18fd06c82eb397566b393e214dc88cb17ec94f3908328e8a55f5f68cc730993 verisign-grs-nstld-key.asc +ad14d7b6c6c52ebdd6c21448aa79d0560701df3b92576fab7ed1611314a5279e317dcfbcb05f2f2cb9d9b0a8932f56e6a03c7a52709fc75929d568267aa64f8b named.root +774ac61ee930611a1876447c981e20f0340ad25c49703b2d068164a681c3d5bac8f5c8f6fc0a4ba98e04d9aa4b922d4ea8936029cf2336b94e7cd6588ee6ba69 named.root.sig" diff --git a/main/dns-root-hints/named.root b/main/dns-root-hints/named.root new file mode 100644 index 0000000000..52a6077d0e --- /dev/null +++ b/main/dns-root-hints/named.root @@ -0,0 +1,92 @@ +; This file holds the information on root name servers needed to +; initialize cache of Internet domain name servers +; (e.g. reference this file in the "cache . <file>" +; configuration file of BIND domain name servers). +; +; This file is made available by InterNIC +; under anonymous FTP as +; file /domain/named.cache +; on server FTP.INTERNIC.NET +; -OR- RS.INTERNIC.NET +; +; last update: March 13, 2019 +; related version of root zone: 2019031302 +; +; FORMERLY NS.INTERNIC.NET +; +. 3600000 NS A.ROOT-SERVERS.NET. +A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 +A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:ba3e::2:30 +; +; FORMERLY NS1.ISI.EDU +; +. 3600000 NS B.ROOT-SERVERS.NET. +B.ROOT-SERVERS.NET. 3600000 A 199.9.14.201 +B.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:200::b +; +; FORMERLY C.PSI.NET +; +. 3600000 NS C.ROOT-SERVERS.NET. +C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 +C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::c +; +; FORMERLY TERP.UMD.EDU +; +. 3600000 NS D.ROOT-SERVERS.NET. +D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13 +D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2d::d +; +; FORMERLY NS.NASA.GOV +; +. 3600000 NS E.ROOT-SERVERS.NET. +E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 +E.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:a8::e +; +; FORMERLY NS.ISC.ORG +; +. 3600000 NS F.ROOT-SERVERS.NET. +F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 +F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2f::f +; +; FORMERLY NS.NIC.DDN.MIL +; +. 3600000 NS G.ROOT-SERVERS.NET. +G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 +G.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:12::d0d +; +; FORMERLY AOS.ARL.ARMY.MIL +; +. 3600000 NS H.ROOT-SERVERS.NET. +H.ROOT-SERVERS.NET. 3600000 A 198.97.190.53 +H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::53 +; +; FORMERLY NIC.NORDU.NET +; +. 3600000 NS I.ROOT-SERVERS.NET. +I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 +I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fe::53 +; +; OPERATED BY VERISIGN, INC. +; +. 3600000 NS J.ROOT-SERVERS.NET. +J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30 +J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:c27::2:30 +; +; OPERATED BY RIPE NCC +; +. 3600000 NS K.ROOT-SERVERS.NET. +K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 +K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7fd::1 +; +; OPERATED BY ICANN +; +. 3600000 NS L.ROOT-SERVERS.NET. +L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42 +L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:9f::42 +; +; OPERATED BY WIDE +; +. 3600000 NS M.ROOT-SERVERS.NET. +M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 +M.ROOT-SERVERS.NET. 3600000 AAAA 2001:dc3::35 +; End of file diff --git a/main/dns-root-hints/named.root.sig b/main/dns-root-hints/named.root.sig Binary files differnew file mode 100644 index 0000000000..484ecc9225 --- /dev/null +++ b/main/dns-root-hints/named.root.sig diff --git a/main/dns-root-hints/verisign-grs-nstld-key.asc b/main/dns-root-hints/verisign-grs-nstld-key.asc new file mode 100644 index 0000000000..01e63552b5 --- /dev/null +++ b/main/dns-root-hints/verisign-grs-nstld-key.asc @@ -0,0 +1,50 @@ +-----BEGIN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