mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Implement RFC8375: Special-Use Domain 'home.arpa.'.
This commit is contained in:
parent
962cb07055
commit
89510f4a0c
4 changed files with 25 additions and 7 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
27 September 2021: Wouter
|
||||||
|
- Implement RFC8375: Special-Use Domain 'home.arpa.'.
|
||||||
|
|
||||||
21 September 2021: Wouter
|
21 September 2021: Wouter
|
||||||
- For crosscompile on windows, detect 64bit stackprotector library.
|
- For crosscompile on windows, detect 64bit stackprotector library.
|
||||||
- Fix crosscompile shell syntax.
|
- Fix crosscompile shell syntax.
|
||||||
|
|
|
||||||
|
|
@ -666,6 +666,7 @@ server:
|
||||||
# local-zone: "localhost." nodefault
|
# local-zone: "localhost." nodefault
|
||||||
# local-zone: "127.in-addr.arpa." nodefault
|
# local-zone: "127.in-addr.arpa." nodefault
|
||||||
# local-zone: "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa." nodefault
|
# local-zone: "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa." nodefault
|
||||||
|
# local-zone: "home.arpa." nodefault
|
||||||
# local-zone: "onion." nodefault
|
# local-zone: "onion." nodefault
|
||||||
# local-zone: "test." nodefault
|
# local-zone: "test." nodefault
|
||||||
# local-zone: "invalid." nodefault
|
# local-zone: "invalid." nodefault
|
||||||
|
|
|
||||||
|
|
@ -1412,13 +1412,13 @@ has no other effect than turning off default contents for the
|
||||||
given zone. Use \fInodefault\fR if you use exactly that zone, if you want to
|
given zone. Use \fInodefault\fR if you use exactly that zone, if you want to
|
||||||
use a subzone, use \fItransparent\fR.
|
use a subzone, use \fItransparent\fR.
|
||||||
.P
|
.P
|
||||||
The default zones are localhost, reverse 127.0.0.1 and ::1, the onion, test,
|
The default zones are localhost, reverse 127.0.0.1 and ::1, the home.arpa,
|
||||||
invalid and the AS112 zones. The AS112 zones are reverse DNS zones for
|
the onion, test, invalid and the AS112 zones. The AS112 zones are reverse
|
||||||
private use and reserved IP addresses for which the servers on the internet
|
DNS zones for private use and reserved IP addresses for which the servers
|
||||||
cannot provide correct answers. They are configured by default to give
|
on the internet cannot provide correct answers. They are configured by
|
||||||
nxdomain (no reverse information) answers. The defaults can be turned off
|
default to give nxdomain (no reverse information) answers. The defaults
|
||||||
by specifying your own local\-zone of that name, or using the 'nodefault'
|
can be turned off by specifying your own local\-zone of that name, or
|
||||||
type. Below is a list of the default zone contents.
|
using the 'nodefault' type. Below is a list of the default zone contents.
|
||||||
.TP 10
|
.TP 10
|
||||||
\h'5'\fIlocalhost\fR
|
\h'5'\fIlocalhost\fR
|
||||||
The IP4 and IP6 localhost information is given. NS and SOA records are provided
|
The IP4 and IP6 localhost information is given. NS and SOA records are provided
|
||||||
|
|
@ -1459,6 +1459,15 @@ local\-data: "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.
|
||||||
PTR localhost."
|
PTR localhost."
|
||||||
.fi
|
.fi
|
||||||
.TP 10
|
.TP 10
|
||||||
|
\h'5'\fIhome.arpa (RFC 8375)\fR
|
||||||
|
Default content:
|
||||||
|
.nf
|
||||||
|
local\-zone: "home.arpa." static
|
||||||
|
local\-data: "home.arpa. 10800 IN NS localhost."
|
||||||
|
local\-data: "home.arpa. 10800 IN
|
||||||
|
SOA localhost. nobody.invalid. 1 3600 1200 604800 10800"
|
||||||
|
.fi
|
||||||
|
.TP 10
|
||||||
\h'5'\fIonion (RFC 7686)\fR
|
\h'5'\fIonion (RFC 7686)\fR
|
||||||
Default content:
|
Default content:
|
||||||
.nf
|
.nf
|
||||||
|
|
|
||||||
|
|
@ -898,6 +898,11 @@ int local_zone_enter_defaults(struct local_zones* zones, struct config_file* cfg
|
||||||
}
|
}
|
||||||
lock_rw_unlock(&z->lock);
|
lock_rw_unlock(&z->lock);
|
||||||
}
|
}
|
||||||
|
/* home.arpa. zone (RFC 8375) */
|
||||||
|
if(!add_empty_default(zones, cfg, "home.arpa.")) {
|
||||||
|
log_err("out of memory adding default zone");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
/* onion. zone (RFC 7686) */
|
/* onion. zone (RFC 7686) */
|
||||||
if(!add_empty_default(zones, cfg, "onion.")) {
|
if(!add_empty_default(zones, cfg, "onion.")) {
|
||||||
log_err("out of memory adding default zone");
|
log_err("out of memory adding default zone");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue