Cant start the Bind in centos -7

General support questions
Post Reply
User avatar
laxmicentos
Posts: 2
Joined: 2018/07/27 03:36:34

Cant start the Bind in centos -7

Post by laxmicentos » 2019/09/11 16:50:55

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 /]#

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Cant start the Bind in centos -7

Post by avij » 2019/09/11 17:08:19

Have you considered looking at your /etc/named.conf at around the lines that were mentioned in the error message?

User avatar
laxmicentos
Posts: 2
Joined: 2018/07/27 03:36:34

Re: Cant start the Bind in centos -7

Post by laxmicentos » 2019/09/11 17:53:11

hi,


What should i check .I did not find any issue.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Cant start the Bind in centos -7

Post by avij » 2019/09/11 17:57:12

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'
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.

diksha
Posts: 2
Joined: 2019/10/05 12:44:07

Re: Cant start the Bind in centos -7

Post by diksha » 2019/10/05 17:43:55

Hi, can you show /etc/named.conf file

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Cant start the Bind in centos -7

Post by pjsr2 » 2019/10/07 06:23:17

Bind comes with the utilities named-checkconf and named-checkzone. Use these to check your configuration.

Post Reply