- Redirect all localhost names to localhost address for RFC6761.

git-svn-id: file:///svn/unbound/trunk@4273 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2017-07-11 14:29:54 +00:00
parent c8189d1018
commit 160b70f417
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
11 July 2017: Wouter 11 July 2017: Wouter
- Fix #1344: RFC6761-reserved domains: test. and invalid. - Fix #1344: RFC6761-reserved domains: test. and invalid.
- Redirect all localhost names to localhost address for RFC6761.
6 July 2017: Wouter 6 July 2017: Wouter
- Fix tests to use .tdir (from Manu Bretelle) instead of .tpkg. - Fix tests to use .tdir (from Manu Bretelle) instead of .tpkg.

View file

@ -762,7 +762,7 @@ int local_zone_enter_defaults(struct local_zones* zones, struct config_file* cfg
/* localhost. zone */ /* localhost. zone */
if(!lz_exists(zones, "localhost.") && if(!lz_exists(zones, "localhost.") &&
!lz_nodefault(cfg, "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)) || LDNS_RR_CLASS_IN)) ||
!lz_enter_rr_into_zone(z, !lz_enter_rr_into_zone(z,
"localhost. 10800 IN NS localhost.") || "localhost. 10800 IN NS localhost.") ||