]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
GID, UID and UINFO could not be loaded using unknown record format.
authorMark Andrews <marka@isc.org>
Thu, 25 Oct 2018 05:34:27 +0000 (16:34 +1100)
committerEvan Hunt <each@isc.org>
Thu, 25 Oct 2018 20:00:32 +0000 (13:00 -0700)
CHANGES
bin/tests/system/genzone.sh
bin/tests/system/xfer/dig1.good
bin/tests/system/xfer/dig2.good
lib/dns/gen.c

diff --git a/CHANGES b/CHANGES
index 379eee9398b55a9249c2d8085b3777b5786eea99..0c30e46b98ac35cecb4607e084770fcf4a37bd35 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+5060.  [bug]           GID, UID and UINFO could not be loaded using unknown
+                       record format. [GL #627]
+
 5059.  [bug]           Display a per-view list of zones in the web interface.
                        [GL #427]
 
index fac51f7d291f46a00c231a353f219990a8ff182a..cdd09a5623800d84273870891c4ed6dc12b221e2 100644 (file)
@@ -370,9 +370,14 @@ csync02                    CSYNC   0 0
 spf01                  SPF     "v=spf1 -all"
 spf02                  SPF     "v=spf1" " -all"
 
-; type 100 (UINFO - not implemented by BIND)
-; type 101 (UID - not implemented by BIND)
-; type 102 (GID - not implemented by BIND)
+; type 100 (UINFO - not implemented by BIND - unknown record format only)
+uinfo01                        UINFO   \# 1 01
+
+; type 101 (UID - not implemented by BIND - unknown record format only)
+uid01                  UID     \# 1 02
+
+; type 102 (GID - not implemented by BIND - unknown record format only)
+gid01                  GID     \# 1 03
 
 ; type 103 (UNSPEC - XXXMUKS TODO - this has some weird encoding - see btoa_totext())
 
index f45627ab70ac9219f491faef214573c2438e5192..2ac04d3e36ae782db4b058b4a1907b28a7aeefb1 100644 (file)
@@ -43,6 +43,7 @@ ds02.example.         3600    IN      NS      ns43.example.
 ds02.example.          3600    IN      DS      12892 5 1 7AA4A3F416C2F2391FB7AB0D434F762CD62D1390
 eui48.example.         3600    IN      EUI48   01-23-45-67-89-ab
 eui64.example.         3600    IN      EUI64   01-23-45-67-89-ab-cd-ef
+gid01.example.         3600    IN      GID     \# 1 03
 gpos01.example.                3600    IN      GPOS    "-22.6882" "116.8652" "250.0"
 gpos02.example.                3600    IN      GPOS    "" "" ""
 hinfo01.example.       3600    IN      HINFO   "Generic PC clone" "NetBSD-1.4"
@@ -146,6 +147,8 @@ txt12.example.              3600    IN      TXT     "\"foo\""
 txt13.example.         3600    IN      TXT     "foo;"
 txt14.example.         3600    IN      TXT     "foo;"
 txt15.example.         3600    IN      TXT     "bar\\;"
+uid01.example.         3600    IN      UID     \# 1 02
+uinfo01.example.       3600    IN      UINFO   \# 1 01
 uri01.example.         3600    IN      URI     10 20 "https://www.isc.org/"
 uri02.example.         3600    IN      URI     30 40 "https://www.isc.org/HolyCowThisSureIsAVeryLongURIRecordIDontEvenKnowWhatSomeoneWouldEverWantWithSuchAThingButTheSpecificationRequiresThatWesupportItSoHereWeGoTestingItLaLaLaLaLaLaLaSeriouslyThoughWhyWouldYouEvenConsiderUsingAURIThisLongItSeemsLikeASillyIdeaButEnhWhatAreYouGonnaDo/"
 uri03.example.         3600    IN      URI     30 40 ""
index 8b1751ea48ebfe37f555e47bef0d21571b31e728..2a3856bbbe0a699f9f7efb904f0a9c93a54c2b22 100644 (file)
@@ -43,6 +43,7 @@ ds02.example.         3600    IN      NS      ns43.example.
 ds02.example.          3600    IN      DS      12892 5 1 7AA4A3F416C2F2391FB7AB0D434F762CD62D1390
 eui48.example.         3600    IN      EUI48   01-23-45-67-89-ab
 eui64.example.         3600    IN      EUI64   01-23-45-67-89-ab-cd-ef
+gid01.example.         3600    IN      GID     \# 1 03
 gpos01.example.                3600    IN      GPOS    "-22.6882" "116.8652" "250.0"
 gpos02.example.                3600    IN      GPOS    "" "" ""
 hinfo01.example.       3600    IN      HINFO   "Generic PC clone" "NetBSD-1.4"
@@ -146,6 +147,8 @@ txt12.example.              3600    IN      TXT     "\"foo\""
 txt13.example.         3600    IN      TXT     "foo;"
 txt14.example.         3600    IN      TXT     "foo;"
 txt15.example.         3600    IN      TXT     "bar\\;"
+uid01.example.         3600    IN      UID     \# 1 02
+uinfo01.example.       3600    IN      UINFO   \# 1 01
 uri01.example.         3600    IN      URI     10 20 "https://www.isc.org/"
 uri02.example.         3600    IN      URI     30 40 "https://www.isc.org/HolyCowThisSureIsAVeryLongURIRecordIDontEvenKnowWhatSomeoneWouldEverWantWithSuchAThingButTheSpecificationRequiresThatWesupportItSoHereWeGoTestingItLaLaLaLaLaLaLaSeriouslyThoughWhyWouldYouEvenConsiderUsingAURIThisLongItSeemsLikeASillyIdeaButEnhWhatAreYouGonnaDo/"
 uri03.example.         3600    IN      URI     30 40 ""
index 885b7d659daf1f4ba9f72ebe03b602f2361b28e9..248d13e18071b122210496bd5dbec5813896876b 100644 (file)
@@ -689,7 +689,8 @@ main(int argc, char **argv) {
                         "DNS_RDATATYPEATTR_NOTQUESTION"
 #define METAQUESTIONONLY "DNS_RDATATYPEATTR_META | " \
                         "DNS_RDATATYPEATTR_QUESTIONONLY"
-#define RESERVED "DNS_RDATATYPEATTR_RESERVED"
+#define RESERVEDNAME    "0"
+#define RESERVED        "DNS_RDATATYPEATTR_RESERVED"
 
                /*
                 * Add in reserved/special types.  This will let us
@@ -698,9 +699,9 @@ main(int argc, char **argv) {
                insert_into_typenames(0, "reserved0", RESERVED);
                insert_into_typenames(31, "eid", RESERVED);
                insert_into_typenames(32, "nimloc", RESERVED);
-               insert_into_typenames(100, "uinfo", RESERVED);
-               insert_into_typenames(101, "uid", RESERVED);
-               insert_into_typenames(102, "gid", RESERVED);
+               insert_into_typenames(100, "uinfo", RESERVEDNAME);
+               insert_into_typenames(101, "uid", RESERVEDNAME);
+               insert_into_typenames(102, "gid", RESERVEDNAME);
                insert_into_typenames(251, "ixfr", METAQUESTIONONLY);
                insert_into_typenames(252, "axfr", METAQUESTIONONLY);
                insert_into_typenames(253, "mailb", METAQUESTIONONLY);