HI ,
The below error i am getting .kindly help regarding it.
[root@hostx /]# systemctl status named
â— named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-09-11 01:31:49 IST; 7min ago
Process: 4204 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
Sep 11 01:31:49 hostx.example.com systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:64: missing ';' before '}'
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:71: missing ';' before '}'
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:74: unknown option 'i'
Sep 11 01:31:49 hostx.example.com systemd[1]: named.service: control process exited, code=e...=1
Sep 11 01:31:49 hostx.example.com systemd[1]: Failed to start Berkeley Internet Name Domain...).
Sep 11 01:31:49 hostx.example.com systemd[1]: Unit named.service entered failed state.
Sep 11 01:31:49 hostx.example.com systemd[1]: named.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@hostx /]#
[root@hostx /]# systemctl status named
â— named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-09-11 01:31:49 IST; 20min ago
Process: 4204 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
Sep 11 01:31:49 hostx.example.com systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:64: missing ';' before '}'
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:71: missing ';' before '}'
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:74: unknown option 'i'
Sep 11 01:31:49 hostx.example.com systemd[1]: named.service: control process exited, code=e...=1
Sep 11 01:31:49 hostx.example.com systemd[1]: Failed to start Berkeley Internet Name Domain...).
Sep 11 01:31:49 hostx.example.com systemd[1]: Unit named.service entered failed state.
Sep 11 01:31:49 hostx.example.com systemd[1]: named.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@hostx /]#
Cant start the Bind in centos -7
Re: Cant start the Bind in centos -7
Have you considered looking at your /etc/named.conf at around the lines that were mentioned in the error message?
- laxmicentos
- Posts: 2
- Joined: 2018/07/27 03:36:34
Re: Cant start the Bind in centos -7
hi,
What should i check .I did not find any issue.
What should i check .I did not find any issue.
Re: Cant start the Bind in centos -7
This says there's something wrong near lines 64, 71 and/or 74. Maybe you need to add some ; characters at the end of those lines and/or see what kind of an "i" you have on line 74.Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:64: missing ';' before '}'
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:71: missing ';' before '}'
Sep 11 01:31:49 hostx.example.com bash[4204]: /etc/named.conf:74: unknown option 'i'
Re: Cant start the Bind in centos -7
Hi, can you show /etc/named.conf file
Re: Cant start the Bind in centos -7
Bind comes with the utilities named-checkconf and named-checkzone. Use these to check your configuration.