Maradns 几乎可以工作了,但无法挖掘

Maradns 几乎可以工作了,但无法挖掘

我已经设置了 vanilla maradns 服务并且几乎使其正常工作,但我认为缺少了一件事,请看一看。

/var/log/消息:

   Sep  2 06:32:13 localhost /usr/local/sbin/maradns: Filename: db.example.net
   Sep  2 06:32:13 localhost /usr/local/sbin/maradns: MaraDNS proudly serves you 21 DNS records
   Sep  2 06:32:13 localhost /usr/local/sbin/maradns: MaraDNS maximum memory  allocation set to 2653696 bytes
   Sep  2 06:32:13 localhost /usr/local/sbin/maradns: Log: All RRs have been loaded

$ sudo netstat -anup

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 127.0.0.1:323           0.0.0.0:*                           530/chronyd
udp        0      0 127.0.0.1:53            0.0.0.0:*                           24610/maradns
udp6       0      0 ::1:323                 :::*                                530/chronyd

$ askmara Awww.example.com。

 Querying the server with the IP 127.0.0.1
 Remote server said: REFUSED
 NS replies:
 AR replies:

dig @127.0.0.1 example.com 任何

; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> @127.0.0.1 example.com ANY
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 46831
;; flags: qr rd; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

这是配置 /etc/mararc:

ipv4_bind_addresses = “127.0.0.1” chroot_dir = “/etc/maradns” csv2 = {} csv2[“example.net。”] = “db.example.net”

在 amazon-ec2 上运行 centos7、Maradns:2.0.11、dig:DiG 9.9.4-RedHat-9.9.4-29.el7_2.3。此外,不设置递归服务器,只设置权威 DNS 服务器。如果没有必要,我不想设置递归。请大师们指点,我迷路了……

答案1

起初我遇到了同样的错误(REFUSED),但这个配置对我有用,在 ubuntu 16.04 上使用 maradns 2.0.09-2:

文件 mararc 的内容:

bind_address = "127.0.0.1"
chroot_dir = "/etc/maradns"
csv2 = {}
csv2["example.net."] = "db.example.net"

文件db.example.net的内容:

example.net.      +14400    soa    ns1.example.net. [email protected] 14400 3600 604800 14400 ~  
example.net.      +14400    ns  ns1.example.net. ~  
example.net.      +14400    ns  ns2.example.net. ~  
ns1.example.net.  +14400    a      127.0.0.1 ~ 
ns2.example.net.  +14400    a      127.0.0.1 ~  
example.net.     +14400    a      127.0.0.1 ~  
www.example.net.  +14400    a      127.0.0.1 ~ 
example.net.      +14400    mx     10 mail.example.net. ~ 
mail.example.net. +14400    a      127.0.0.1 ~

相关内容