From 7357d5aa236a42e8a6f6bfefd9fffae9bfd9450d Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sun, 16 May 2021 14:29:43 +0200 Subject: fix record type policy; add TLD registry --- gnu-name-system-default-tlds/Makefile | 19 +++++++++++++++++++ gnu-name-system-default-tlds/POLICY | 12 ++++++++++++ gnu-name-system-default-tlds/README | 4 ++++ gnu-name-system-default-tlds/registry.rec | 22 ++++++++++++++++++++++ gnu-name-system-default-tlds/tlds.header | 7 +++++++ gnu-name-system-default-tlds/tlds.template | 2 ++ gnu-name-system-record-types/POLICY | 9 ++++----- 7 files changed, 70 insertions(+), 5 deletions(-) create mode 100644 gnu-name-system-default-tlds/Makefile create mode 100644 gnu-name-system-default-tlds/POLICY create mode 100644 gnu-name-system-default-tlds/README create mode 100644 gnu-name-system-default-tlds/registry.rec create mode 100644 gnu-name-system-default-tlds/tlds.header create mode 100644 gnu-name-system-default-tlds/tlds.template diff --git a/gnu-name-system-default-tlds/Makefile b/gnu-name-system-default-tlds/Makefile new file mode 100644 index 0000000..d2b66a6 --- /dev/null +++ b/gnu-name-system-default-tlds/Makefile @@ -0,0 +1,19 @@ +FILES=tlds.conf +all: check $(FILES) + +check: + recfix --check registry.rec + +distclean: + + rm -f *.tmp +clean: + rm -f $(FILES) *.tmp + +tlds.conf.tmp: registry.rec tlds.template + ../format.sh tlds.template < registry.rec > $@ + +tlds.conf: tlds.header tlds.conf.tmp + cat $^ > $@ + +.PHONY: check clean distclean diff --git a/gnu-name-system-default-tlds/POLICY b/gnu-name-system-default-tlds/POLICY new file mode 100644 index 0000000..cfa8b50 --- /dev/null +++ b/gnu-name-system-default-tlds/POLICY @@ -0,0 +1,12 @@ +Each registry entry should contain three values: the "Key" of the +authoritative zone of a TLD, the "Name" of the TLDS, an optional +"Contact", and a "Reference" with links to further information about the +authority. + +The "Name" must be unique in the entire registry. The value must be a +case insensitive UTF-8 string without dots. + +Adding records is possible after expert review by the maintainers of GNUnet. + +The current contact(s) for expert review are reachable at +gns-registry@gnunet.org. diff --git a/gnu-name-system-default-tlds/README b/gnu-name-system-default-tlds/README new file mode 100644 index 0000000..b2a9d4f --- /dev/null +++ b/gnu-name-system-default-tlds/README @@ -0,0 +1,4 @@ +This registry is the default Top-Level-Domains (TLDs) for the GNU Name System. + +This registry is used to ensure that GNS resolvers ship with a default +configuration of TLDs in order to ease transition and enable instant use. diff --git a/gnu-name-system-default-tlds/registry.rec b/gnu-name-system-default-tlds/registry.rec new file mode 100644 index 0000000..f784878 --- /dev/null +++ b/gnu-name-system-default-tlds/registry.rec @@ -0,0 +1,22 @@ +# -*- mode: rec -*- +# +# Registry for GNU Name System default Top-Level-Domains +# + +%rec: GnsTld +%key: Name +%typedef: Name_t regexp /^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-]*$/ +%type: Name Name_t +%typedef: Key_t regexp /^[ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789][ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*$/ +%type: Key Key_t +%unique: Name +%mandatory: Name +%mandatory: Key +%mandatory: Comment +%allowed: Contact +%allowed: References +%sort: Name Contact References + +Name: pin +Key: 000G001MF6DVMZZ4Y8XRZQDXM1PB3D3VGEK29ZHXBA57EPSNW1QBPKT8J0 +Comment: The FCFS authority managed by GNUnet e.V. diff --git a/gnu-name-system-default-tlds/tlds.header b/gnu-name-system-default-tlds/tlds.header new file mode 100644 index 0000000..e7f4233 --- /dev/null +++ b/gnu-name-system-default-tlds/tlds.header @@ -0,0 +1,7 @@ +# WARNING: +# This header is generated! +# In order to add TLDs, you must register +# them in GANA, and then use the header generation script +# to create an update of this file. You may then replace this +# file with the update. +[gns] diff --git a/gnu-name-system-default-tlds/tlds.template b/gnu-name-system-default-tlds/tlds.template new file mode 100644 index 0000000..48e9f45 --- /dev/null +++ b/gnu-name-system-default-tlds/tlds.template @@ -0,0 +1,2 @@ +# {{Comment}} +.{{Name}} {{Key}} diff --git a/gnu-name-system-record-types/POLICY b/gnu-name-system-record-types/POLICY index 1369b11..89edf47 100644 --- a/gnu-name-system-record-types/POLICY +++ b/gnu-name-system-record-types/POLICY @@ -1,17 +1,16 @@ Each registry entry should contain three values: the "Number" of the record type, which must be above 65535 (to avoid conflicts with legacy -DNS record types), the "Name" of the record type, an optional -"Contact" for the payment method, and a "Reference" with links to -further information about the record type. +DNS record types), the "Name" of the record type, and a "Reference" with links +to further information about the record type. The "Name" must be unique in the entire registry. The value must be a case insensitive ASCII string and is restricted to alphanumeric -characters, dots and dashes. +characters. Adding records is possible after expert review, using a first-come-first-served policy for unique "Name" allocation. Experts are responsible to ensure that the chosen "Name" is -appropriate for the payment method. +appropriate for the record type. The current contact(s) for expert review are reachable at gns-registry@gnunet.org. -- cgit v1.2.3