summaryrefslogtreecommitdiffstats
path: root/etc/namedb/make-localhost
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-01-22 17:22:41 +0000
committerume <ume@FreeBSD.org>2002-01-22 17:22:41 +0000
commitfab7c109cf866bbe9a8703794d2f261256c2a0ce (patch)
tree09e3ff4e7adb3428ac44b53e3dc3557901a99778 /etc/namedb/make-localhost
parent566f6c525032b28586b7049329405dcbbfdc6b33 (diff)
downloadFreeBSD-src-fab7c109cf866bbe9a8703794d2f261256c2a0ce.zip
FreeBSD-src-fab7c109cf866bbe9a8703794d2f261256c2a0ce.tar.gz
Do not taint ::/124 for localhost reverse table.
Diffstat (limited to 'etc/namedb/make-localhost')
-rwxr-xr-xetc/namedb/make-localhost7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/namedb/make-localhost b/etc/namedb/make-localhost
index 704fd55..f3f0b1d 100755
--- a/etc/namedb/make-localhost
+++ b/etc/namedb/make-localhost
@@ -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" \
OpenPOWER on IntegriCloud