把这个文件内容删了就可以启动named服务,写上就报错。

解决方案 »

  1.   

    报什么错?你的zone文件写了么?
      

  2.   

    zone是已经写了的。
      

  3.   

    -- The start-up result is done.
    Jul 29 02:54:28 linuxprobe systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
    -- Subject: Unit named.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit named.service has begun starting up.
    Jul 29 02:54:28 linuxprobe bash[2007]: zone linuxprobe.com/IN: NS 'ns.linuxprobe.com.linuxprobe.com' has no address records (A or AAAA)
    Jul 29 02:54:28 linuxprobe bash[2007]: zone linuxprobe.com/IN: not loaded due to errors.
    Jul 29 02:54:28 linuxprobe bash[2007]: _default/linuxprobe.com/IN: bad zone
    Jul 29 02:54:28 linuxprobe polkitd[787]: Unregistered Authentication Agent for unix-process:1997:1254735 (system bus name :1.44, object path /org/free
    Jul 29 02:54:28 linuxprobe systemd[1]: named.service: control process exited, code=exited status=1
    Jul 29 02:54:28 linuxprobe systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
    -- Subject: Unit named.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit named.service has failed.
    --
    -- The result is failed.
    Jul 29 02:54:28 linuxprobe systemd[1]: Unit named.service entered failed state.
    Jul 29 02:54:28 linuxprobe systemd[1]: named.service failed.
    ~这是报错
      

  4.   

    你把zone里面的NS    ns.linuxprobe.com    换成ns.linuxprobe.com.试试,后面加个.