服务器:名称或服务未知 BIND9

时间:2021-05-31 17:26:18

标签: linux server dns ubuntu-20.04 bind9

enter image description here

enter image description here

enter image description here

root@server: ping -c 4 服务器 ping: servidor: 名称或服务未知

有人可以告诉我我是否有任何语法错误还是其他类型的错误?预先非常感谢您

1 个答案:

答案 0 :(得分:0)

db.domain.com 文件应该如下,你也忘记了 NS 记录

    $ORIGIN .
$TTL 604800     ; 1 week
domain.com           IN SOA  f95. root.domain.com. (
                                165       ; serial
                                604800     ; refresh (1 week)
                                86400      ; retry (1 day)
                                2419200    ; expire (4 weeks)
                                604800     ; minimum (1 week)
                                )
                        NS      ns1.domain.com.
                        NS      ns2.domain.com.
                        AAAA    ::1
                        MX      10 mail.domain.com.

更改此文件后,您应该更改序列号,然后重新启动绑定服务。