Cannot start DNS service: bad dotted quad

Created:

2016-11-16 12:48:25 UTC

Modified:

2017-05-01 18:21:39 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Cannot start DNS service: bad dotted quad

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. Cannot start DNS service:

    # systemctl status named-chroot.service
    ● named-chroot.service - Berkeley Internet Name Domain (DNS)
    Loaded: loaded (/usr/lib/systemd/system/named-chroot.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since vie 2016-04-08 21:50:07 CEST; 11s ago
    Process: 30254 ExecStartPre=/usr/sbin/named-checkconf -t /var/named/chroot -z /etc/named.conf (code=exited, status=1/FAILURE)

    apr 08 21:50:07 server.hostname.tld named-checkconf[30254]: _default/0.0.127.IN-ADDR.ARPA/IN: bad dotted quad
    apr 08 21:50:07 server.hostname.tld named-checkconf[30254]: zone example1.com/IN: loaded serial 1460100707
    apr 08 21:50:07 server.hostname.tld named-checkconf[30254]: zone example2.com/IN: loaded serial 2016040801
    apr 08 21:50:07 server.hostname.tld systemd[1]: named-chroot.service: control process exited, code=exited status=1
    apr 08 21:50:07 server.hostname.tld systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
    apr 08 21:50:07 server.hostname.tld systemd[1]: Unit named-chroot.service entered failed state.
    apr 08 21:50:07 server.hostname.tld systemd[1]: named-chroot.service failed.
  2. Execution of named-checkconf gives the following output:

    # /usr/sbin/named-checkconf -t /var/named/chroot -z /etc/named.conf 
    dns_rdata_fromtext: localhost.rev:11: near 'server.hostname.tld.': bad dotted quad
    zone 0.0.127.IN-ADDR.ARPA/IN: loading from master file localhost.rev failed: bad dotted quad
    zone 0.0.127.IN-ADDR.ARPA/IN: not loaded due to errors.

Cause

Corrupted or manually modified zone file.

Resolution

  1. Create a backup of corrupted zone file mentioned in the error.

  2. Apply DNS template to the zone

    Home > Domains > domain.tld > DNS Settings > Apply DNS Template

Have more questions? Submit a request
Please sign in to leave a comment.