No es posible iniciar named.service en CentOS 7

Created:

2016-11-16 13:21:39 UTC

Modified:

2017-08-11 03:34:45 UTC

0

Was this article helpful?


Have more questions?

Enviar una solicitud

No es posible iniciar named.service en CentOS 7

Síntomas

El servicio named experimenta errores en Centos 7:

    ]# systemctl status named.service         
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled)
Active: failed (Result: exit-code) since Sa 2014-12-06 12:42:31 CET; 1h 6min ago
Process: 26473 ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf (code=exited, status=1/FAILURE)

Dez 06 12:42:31 Test.com named-checkconf[26473]: _default/domain1.tld/IN: file not found
Dez 06 12:42:31 Test.com named-checkconf[26473]: zone domain2.tld/IN: loading from master file domain2.tld failed: file not found

Causa

CentOS 7 System V init ha sido reemplazado por systemd . Como BIND está gestionado por Plesk y no interfiere en el script original de arranque named , Plesk instala su propio script named-chroot . Esto significa que BIND no debería iniciarse usando el script named , sino que Plesk debería iniciar y gestionar named-chroot .

Resolución

  1. Desactive named.service:

    # systemctl disable named.service
  2. Active named-chroot.service:

    # systemctl enable named-chroot.service
    ln -s '/usr/lib/systemd/system/named-chroot.service'
  3. A continuación, inicie el servicio named-chroot.service:

    # systemctl start named-chroot.service
    # systemctl status named-chroot.service
    named-chroot.service - Berkeley Internet Name Domain (DNS)
    Loaded: loaded (/usr/lib/systemd/system/named-chroot.service; enabled)
    Active: active (running) since Wed 2015-01-07 22:57:33 CST; 27min ago
    Main PID: 12682 (named)
    CGroup: /system.slice/named-chroot.service
    ââ12682 /usr/sbin/named -u named -t /var/named/chroot -c /etc/named.conf -u named -n 2

    Jan 07 23:14:44 Test.com named[12682]: automatic empty zone: 8.E.F.IP6.ARPA
    Jan 07 23:14:44 Test.com named[12682]: automatic empty zone: 9.E.F.IP6.ARPA
    Jan 07 23:14:44 Test.com named[12682]: automatic empty zone: A.E.F.IP6.ARPA
    Jan 07 23:14:44 Test.com named[12682]: automatic empty zone: B.E.F.IP6.ARPA
    Jan 07 23:14:44 Test.com named[12682]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
    Jan 07 23:14:44 Test.com named[12682]: reloading configuration succeeded
    Jan 07 23:14:44 Test.com named[12682]: reloading zones succeeded
    Jan 07 23:14:44 Test.com named[12682]: all zones loaded
    Jan 07 23:14:44 Test.com named[12682]: running
    #
    1. Sincronice las zonas DNS con el servidor DNS mediante el comando plesk repair dns domain.tld .
¿Tiene más preguntas? Enviar una solicitud
Inicie sesión para dejar un comentario.