]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Redirect all localhost names to localhost address for RFC6761.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 11 Jul 2017 14:29:54 +0000 (14:29 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 11 Jul 2017 14:29:54 +0000 (14:29 +0000)
git-svn-id: file:///svn/unbound/trunk@4273 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/localzone.c

index 9b62c75740e6a2b1048e5948a0726de1d8a6e522..293db449fa4984673048d5488c113e45e6ba4492 100644 (file)
@@ -1,5 +1,6 @@
 11 July 2017: Wouter
        - Fix #1344: RFC6761-reserved domains: test. and invalid.
+       - Redirect all localhost names to localhost address for RFC6761.
 
 6 July 2017: Wouter
        - Fix tests to use .tdir (from Manu Bretelle) instead of .tpkg.
index d0c7c08f46474d916135e5607e9fb35b63950891..1215f27d53cc828622d7acac8570c8db552752eb 100644 (file)
@@ -762,7 +762,7 @@ int local_zone_enter_defaults(struct local_zones* zones, struct config_file* cfg
        /* localhost. zone */
        if(!lz_exists(zones, "localhost.") &&
                !lz_nodefault(cfg, "localhost.")) {
-               if(!(z=lz_enter_zone(zones, "localhost.", "static", 
+               if(!(z=lz_enter_zone(zones, "localhost.", "redirect", 
                        LDNS_RR_CLASS_IN)) ||
                   !lz_enter_rr_into_zone(z,
                        "localhost. 10800 IN NS localhost.") ||