我正在尝试设置自己的 Bind9 服务器,但是启动服务器时出现以下错误:
Nov 23 09:52:53 name named[26661]: reverse/172.18.6.234:1: no current owner name
Nov 23 09:52:53 name named[26661]: zone 6.18.172.in-addr.arpa/IN: loading from master file reverse/172.18.6.234 failed: no owner
Nov 23 09:52:53 name named[26661]: zone 6.18.172.in-addr.arpa/IN: not loaded due to errors.
Nov 23 09:52:53 name named[26661]: dns_rdata_fromtext: lehrwerkstatt.lan.db:23: near '172.18.6.234.2': bad dotted quad
Nov 23 09:52:53 name named[26661]: zone lehrwerkstatt.lan/IN: loading from master file lehrwerkstatt.lan.db failed: bad dotted quad
Nov 23 09:52:53 name named[26661]: zone lehrwerkstatt.lan/IN: not loaded due to errors.
我的配置:
db.lehrwerkstatt.lan
(我把真实网关IP去掉了)$TTL 3D @ IN SOA ns.lehrwerkstatt.lan. chantra.lehrwerkstatt.lan. ( 2022112301 ; serial, todays date + todays serial # 8H ; refresh, seconds 2H ; retry, seconds 4W ; expire, seconds 1D ) ; minimum, seconds ; NS ns ; Inet Address of name server MX 10 mail ; Primary Mail Exchanger MX 20 mail2 ; Secondary Mail Exchanger ; ns A 172.18.6.234 www CNAME www.lehrwerkstatt.lan. ftp CNAME ns gw A 172.18.6.234 TXT "Network gateway" mail A 172.18.6.234.2 mail2 CNAME otherbox otherbox A 172.18.6.234.3 TXT "Otherbox"
172.18.6.234
$TTL 3D @ IN SOA ns.lehrwerkstatt.lan. chantra.lehrwerkstatt.lan ( 2022112301 ; Serial, todays date + todays serial 8H ; Refresh 2H ; Retry 4W ; Expire 1D) ; Minimum TTL NS ns.lehrwerkstatt.lan 1 PTR gw.lehrwerkstatt.lan. 2 PTR mail.lehrwerkstatt.lan. 3 PTR otherbox.lehrwerkstatt.lan. 5 PTR ns.lehrwerkstatt.lan.
named.conf.local
zone "lehrwerkstatt.lan" { type master; file "lehrwerkstatt.lan.db"; notify no; }; zone "6.18.172.in-addr.arpa" { type master; notify no; file "reverse/172.18.6.234"; };
我尝试自己修复它,但没有任何改变。
答案1
在reverse/172.18.6.234
第一行中有一个前导空格 - $TTL 3D
,您需要删除所有前导空格。如果有前导空格,则意味着引用前一个条目。
在 中db.lehrwerkstatt.lan
,您显然没有mail
&的正确 IP 地址other
。应该有 4 个用点分隔的数字,你有 5 个。