mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Do not taint ::/124 for localhost reverse table.
This commit is contained in:
parent
322628519e
commit
fc50a44458
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89660
17
etc/namedb/PROTO.localhost-v6.rev
Normal file
17
etc/namedb/PROTO.localhost-v6.rev
Normal file
@ -0,0 +1,17 @@
|
||||
; From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90
|
||||
; $FreeBSD$
|
||||
;
|
||||
; This file is automatically edited by the `make-localhost' script in
|
||||
; the /etc/namedb directory.
|
||||
;
|
||||
|
||||
$TTL 3600
|
||||
|
||||
@ IN SOA @host@. root.@host@. (
|
||||
@date@ ; Serial
|
||||
3600 ; Refresh
|
||||
900 ; Retry
|
||||
3600000 ; Expire
|
||||
3600 ) ; Minimum
|
||||
IN NS @host@.
|
||||
IN PTR localhost.@domain@.
|
@ -32,6 +32,13 @@ fi
|
||||
|
||||
date=`date +"%Y%m%d"`
|
||||
|
||||
mv -f localhost-v6.rev localhost-v6.rev.BAK 2>/dev/null
|
||||
|
||||
sed -e "s/@host@/$fullhost/g" \
|
||||
-e "s/@domain@/$domain/g" \
|
||||
-e "s/@date@/$date/g" \
|
||||
< PROTO.localhost-v6.rev > localhost-v6.rev
|
||||
|
||||
mv -f localhost.rev localhost.rev.BAK 2>/dev/null
|
||||
|
||||
exec sed -e "s/@host@/$fullhost/g" \
|
||||
|
@ -66,9 +66,9 @@ zone "0.0.127.IN-ADDR.ARPA" {
|
||||
file "localhost.rev";
|
||||
};
|
||||
|
||||
zone "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.INT" {
|
||||
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.INT" {
|
||||
type master;
|
||||
file "localhost.rev";
|
||||
file "localhost-v6.rev";
|
||||
};
|
||||
|
||||
// NB: Do not use the IP addresses below, they are faked, and only
|
||||
|
Loading…
Reference in New Issue
Block a user