Author Topic: BIND DNS Server failed  (Read 317 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
BIND DNS Server failed
« on: July 04, 2018, 04:59:56 AM »
Hello!

I can not start the "BIND DNS Server".

Can someone here help me with this?

When I try to start the following message appears:

Quote
WARNING!

Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details

Status:

Code: [Select]
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2018-07-04 00:56:18 EDT; 7min ago
  Process: 9258 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)

Jul 04 00:56:18 srv1.fourse.com.br systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
Jul 04 00:56:18 srv1.fourse.com.br bash[9258]: /etc/named.conf:105: zone 'ns1.centos-webpanel.com': already exists previous definition: /etc/named.conf:104
Jul 04 00:56:18 srv1.fourse.com.br systemd[1]: named.service: control process exited, code=exited status=1
Jul 04 00:56:18 srv1.fourse.com.br systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Jul 04 00:56:18 srv1.fourse.com.br systemd[1]: Unit named.service entered failed state.
Jul 04 00:56:18 srv1.fourse.com.br systemd[1]: named.service failed.

"tail log file var/log/messages/" button:

Code: [Select]
Jul  4 00:38:30 srv1 systemd: Started Flexible branding.
Jul  4 00:38:30 srv1 systemd: Starting Flexible branding.
Jul  4 00:38:30 srv1 systemd: Reached target Paths.
Jul  4 00:38:30 srv1 systemd: Starting Paths.
Jul  4 00:38:30 srv1 systemd: Started Daily Cleanup of Temporary Directories.
Jul  4 00:38:30 srv1 systemd: Starting Daily Cleanup of Temporary Directories.
Jul  4 00:38:30 srv1 systemd: Listening on RPCbind Server Activation Socket.
Jul  4 00:38:30 srv1 systemd: Starting RPCbind Server Activation Socket.
Jul  4 00:38:30 srv1 systemd: Reached target Sockets.
Jul  4 00:38:30 srv1 systemd: Starting Sockets.
Jul  4 00:38:30 srv1 systemd: Started Amavisd clean tmp timer.
Jul  4 00:38:30 srv1 systemd: Starting Amavisd clean tmp timer.
Jul  4 00:38:30 srv1 systemd: Reached target Basic System.
Jul  4 00:38:30 srv1 systemd: Starting Basic System.
Jul  4 00:38:30 srv1 systemd: Started D-Bus System Message Bus.
Jul  4 00:38:30 srv1 systemd: Starting D-Bus System Message Bus...
Jul  4 00:38:30 srv1 systemd: Starting Generate rndc key for BIND (DNS)...
Jul  4 00:38:30 srv1 systemd: Starting Resets System Activity Logs...
Jul  4 00:38:30 srv1 systemd: Starting Permit User Sessions...
Jul  4 00:38:30 srv1 systemd: Starting LSB: Bring up/down networking...
Jul  4 00:38:30 srv1 systemd: Starting Login Service...
Jul  4 00:38:30 srv1 systemd: Started Amavisd clean quarantine timer.
Jul  4 00:38:30 srv1 systemd: Starting Amavisd clean quarantine timer.
Jul  4 00:38:30 srv1 systemd: Reached target Timers.
Jul  4 00:38:30 srv1 systemd: Starting Timers.
Jul  4 00:38:30 srv1 systemd: Started Permit User Sessions.
Jul  4 00:38:30 srv1 systemd: Started Generate rndc key for BIND (DNS).
Jul  4 00:38:30 srv1 systemd: Started Resets System Activity Logs.
Jul  4 00:38:30 srv1 systemd-logind: New seat seat0.
Jul  4 00:38:30 srv1 systemd: Started Job spooling tools.
Jul  4 00:38:30 srv1 systemd: Starting Job spooling tools...
Jul  4 00:38:30 srv1 systemd: Started Getty on tty2.
Jul  4 00:38:30 srv1 systemd: Starting Getty on tty2...
Jul  4 00:38:30 srv1 systemd: Started Command Scheduler.
Jul  4 00:38:30 srv1 systemd: Starting Command Scheduler...
Jul  4 00:38:30 srv1 systemd: Started Console Getty.
Jul  4 00:38:30 srv1 systemd: Starting Console Getty...
Jul  4 00:38:30 srv1 systemd: Reached target Login Prompts.
Jul  4 00:38:30 srv1 systemd: Starting Login Prompts.
Jul  4 00:38:30 srv1 systemd: Started Login Service.
Jul  4 00:38:30 srv1 systemd-sysctl: Failed to write '16' to '/proc/sys/kernel/sysrq': Permission denied
Jul  4 00:38:30 srv1 systemd-sysctl: Failed to write '1' to '/proc/sys/kernel/core_uses_pid': Permission denied
Jul  4 00:38:30 srv1 network: Bringing up loopback interface:  RTNETLINK answers: File exists
Jul  4 00:38:30 srv1 network: [  OK  ]
Jul  4 00:38:31 srv1 network: Bringing up interface venet0:  arping: Device venet0 not available.
Jul  4 00:38:31 srv1 network: RTNETLINK answers: File exists
Jul  4 00:38:31 srv1 network: arping: Device venet0 not available.
Jul  4 00:38:31 srv1 network: [  OK  ]
Jul  4 00:38:31 srv1 systemd-sysctl: Failed to write '16' to '/proc/sys/kernel/sysrq': Permission denied
Jul  4 00:38:31 srv1 systemd-sysctl: Failed to write '1' to '/proc/sys/kernel/core_uses_pid': Permission denied
Jul  4 00:38:31 srv1 systemd: Started LSB: Bring up/down networking.
Jul  4 00:38:31 srv1 systemd: Reached target Network.
Jul  4 00:38:31 srv1 systemd: Starting Network.
Jul  4 00:38:31 srv1 systemd: Starting Berkeley Internet Name Domain (DNS)...
Jul  4 00:38:31 srv1 systemd: Started The PHP FastCGI Process Manager.
Jul  4 00:38:31 srv1 systemd: Starting The PHP FastCGI Process Manager...
Jul  4 00:38:31 srv1 systemd: Starting Web server Apache...
Jul  4 00:38:31 srv1 systemd: Reached target Network is Online.
Jul  4 00:38:31 srv1 systemd: Starting Network is Online.
Jul  4 00:38:31 srv1 systemd: Starting Postfix Mail Transport Agent...
Jul  4 00:38:31 srv1 systemd: Starting Dovecot IMAP/POP3 email server...
Jul  4 00:38:31 srv1 systemd: Starting CentOS Web Panel service (daemon)...
Jul  4 00:38:31 srv1 systemd: Starting OpenSSH server daemon...
Jul  4 00:38:31 srv1 systemd: Starting System Logging Service...
Jul  4 00:38:31 srv1 systemd: Starting Pure-FTPd FTP server...
Jul  4 00:38:31 srv1 systemd: Starting MariaDB 10.1.34 database server...
Jul  4 00:38:31 srv1 systemd: Starting ConfigServer Firewall & Security - csf...
Jul  4 00:38:31 srv1 systemd: PID file /var/run/pure-ftpd.pid not readable (yet?) after start.
Jul  4 00:38:31 srv1 rsyslogd: [origin software="rsyslogd" swVersion="8.24.0" x-pid="403" x-info="http://www.rsyslog.com"] start
Jul  4 00:38:31 srv1 bash: /etc/named.conf:105: zone 'ns1.centos-webpanel.com': already exists previous definition: /etc/named.conf:104
Jul  4 00:38:31 srv1 systemd: Started Dovecot IMAP/POP3 email server.
Jul  4 00:38:31 srv1 systemd: Started System Logging Service.
Jul  4 00:38:31 srv1 systemd: Started OpenSSH server daemon.
Jul  4 00:38:31 srv1 systemd: Started Pure-FTPd FTP server.
Jul  4 00:38:31 srv1 systemd: named.service: control process exited, code=exited status=1
Jul  4 00:38:31 srv1 cwpsrv: cwpsrv:the configuration file /usr/local/cwpsrv/conf/cwpsrv.conf syntax is ok
Jul  4 00:38:31 srv1 cwpsrv: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test is successful
Jul  4 00:38:31 srv1 systemd: Failed to start Berkeley Internet Name Domain (DNS).
Jul  4 00:38:31 srv1 systemd: Unit named.service entered failed state.
Jul  4 00:38:31 srv1 systemd: named.service failed.
Jul  4 00:38:31 srv1 systemd: Reached target Host and Network Name Lookups.
Jul  4 00:38:31 srv1 systemd: Starting Host and Network Name Lookups.
Jul  4 00:38:31 srv1 systemd: Starting DomainKeys Identified Mail (DKIM) Milter...
Jul  4 00:38:31 srv1 systemd: PID file /var/run/opendkim/opendkim.pid not readable (yet?) after start.
Jul  4 00:38:31 srv1 systemd: Started DomainKeys Identified Mail (DKIM) Milter.
Jul  4 00:38:31 srv1 systemd: Failed to read PID from file /usr/local/cwpsrv/var/run/nginx.pid: Invalid argument
Jul  4 00:38:31 srv1 systemd: Started CentOS Web Panel service (daemon).
Jul  4 00:38:31 srv1 systemd: Started Web server Apache.
Jul  4 00:38:31 srv1 mysqld: 2018-07-04  0:38:31 140443047856384 [Note] /usr/sbin/mysqld (mysqld 10.1.34-MariaDB) starting as process 557 ...
Jul  4 00:38:31 srv1 mysqld: 2018-07-04  0:38:31 140443047856384 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Using mutexes to ref count buffer pool pages
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: The InnoDB memory heap is disabled
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Compressed tables use zlib 1.2.7
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Using Linux native AIO
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Using SSE crc32 instructions
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Initializing buffer pool, size = 128.0M
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Completed initialization of buffer pool
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Highest supported file format is Barracuda.
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: 128 rollback segment(s) are active.
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB: Waiting for purge to start
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 3071174
Jul  4 00:38:32 srv1 csf: Flushing chain `INPUT'
Jul  4 00:38:32 srv1 csf: Flushing chain `FORWARD'
Jul  4 00:38:32 srv1 csf: Flushing chain `OUTPUT'
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] Plugin 'FEEDBACK' is disabled.
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] Server socket created on IP: '::'.
Jul  4 00:38:32 srv1 csf: Flushing chain `PREROUTING'
Jul  4 00:38:32 srv1 csf: Flushing chain `POSTROUTING'
Jul  4 00:38:32 srv1 csf: Flushing chain `OUTPUT'
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140442207250176 [Note] InnoDB: Dumping buffer pool(s) not yet started
Jul  4 00:38:32 srv1 csf: Flushing chain `PREROUTING'
Jul  4 00:38:32 srv1 csf: Flushing chain `OUTPUT'
Jul  4 00:38:32 srv1 csf: Flushing chain `PREROUTING'
Jul  4 00:38:32 srv1 csf: Flushing chain `INPUT'
Jul  4 00:38:32 srv1 csf: Flushing chain `FORWARD'
Jul  4 00:38:32 srv1 csf: Flushing chain `OUTPUT'
Jul  4 00:38:32 srv1 csf: Flushing chain `POSTROUTING'
Jul  4 00:38:32 srv1 mysqld: 2018-07-04  0:38:32 140443047856384 [Note] /usr/sbin/mysqld: ready for connections.
Jul  4 00:38:32 srv1 mysqld: Version: '10.1.34-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
Jul  4 00:38:32 srv1 systemd: Started Postfix Mail Transport Agent.
Jul  4 00:38:32 srv1 systemd: Started MariaDB 10.1.34 database server.
Jul  4 00:38:32 srv1 csf: Running /usr/local/csf/bin/csfpre.sh
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading DROP no logging (IPv4)
Jul  4 00:38:32 srv1 csf: LOG  tcp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *TCP_IN Blocked* "
Jul  4 00:38:32 srv1 csf: LOG  tcp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   tcp flags:0x17/0x02 limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *TCP_OUT Blocked* "
Jul  4 00:38:32 srv1 csf: LOG  udp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *UDP_IN Blocked* "
Jul  4 00:38:32 srv1 csf: LOG  udp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *UDP_OUT Blocked* "
Jul  4 00:38:32 srv1 csf: LOG  icmp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 0 level 4 prefix "Firewall: *ICMP_IN Blocked* "
Jul  4 00:38:32 srv1 csf: LOG  icmp opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   limit: avg 30/min burst 5 LOG flags 8 level 4 prefix "Firewall: *ICMP_OUT Blocked* "
Jul  4 00:38:32 srv1 csf: DROP  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: REJECT  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0   reject-with icmp-port-unreachable
Jul  4 00:38:32 srv1 csf: DENYOUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: DENYIN  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: ALLOWOUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: ALLOWIN  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading Packet Filter (IPv4)
Jul  4 00:38:32 srv1 csf: DROP  all opt -- in * out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: INVALID  tcp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: INVALID  tcp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: ACCEPT  all opt -- in !lo out *  177.205.28.148  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: ACCEPT  all opt -- in * out !lo  0.0.0.0/0  -> 177.205.28.148
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading csf.allow (IPv4)
Jul  4 00:38:32 srv1 csf: ACCEPT  icmp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   icmptype 8 limit: avg 1/sec burst 5
Jul  4 00:38:32 srv1 csf: LOGDROPIN  icmp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   icmptype 8
Jul  4 00:38:32 srv1 csf: ACCEPT  icmp opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: ACCEPT  icmp opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: ACCEPT  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0   ctstate RELATED,ESTABLISHED
Jul  4 00:38:32 srv1 csf: ACCEPT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0   ctstate RELATED,ESTABLISHED
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading TCP_IN (IPv4)
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading TCP_OUT (IPv4)
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading UDP_IN (IPv4)
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading UDP_OUT (IPv4)
Jul  4 00:38:32 srv1 csf: ACCEPT  all opt -- in lo out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: ACCEPT  all opt -- in * out lo  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: LOGDROPIN  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: csf: FASTSTART loading DNS (IPv4)
Jul  4 00:38:32 srv1 csf: LOCALOUTPUT  all opt -- in * out !lo  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: LOCALINPUT  all opt -- in !lo out *  0.0.0.0/0  -> 0.0.0.0/0
Jul  4 00:38:32 srv1 csf: Running /usr/local/csf/bin/csfpost.sh
Jul  4 00:38:32 srv1 systemd: Started ConfigServer Firewall & Security - csf.
Jul  4 00:38:32 srv1 systemd: Starting ConfigServer Firewall & Security - lfd...
Jul  4 00:38:33 srv1 systemd: Started ConfigServer Firewall & Security - lfd.
Jul  4 00:38:33 srv1 systemd: Reached target Multi-User System.
Jul  4 00:38:33 srv1 systemd: Starting Multi-User System.
Jul  4 00:38:33 srv1 systemd: Starting Tell that Container is started...
Jul  4 00:38:33 srv1 systemd: Started Tell that Container is started.
Jul  4 00:38:33 srv1 systemd: Reached target Graphical Interface.
Jul  4 00:38:33 srv1 systemd: Starting Graphical Interface.
Jul  4 00:38:33 srv1 systemd: Starting Update UTMP about System Runlevel Changes...
Jul  4 00:38:33 srv1 systemd: Started Update UTMP about System Runlevel Changes.
Jul  4 00:38:33 srv1 systemd: Startup finished in 2.850s.
Jul  4 00:40:02 srv1 systemd: Created slice User Slice of root.
Jul  4 00:40:02 srv1 systemd: Starting User Slice of root.
Jul  4 00:40:02 srv1 systemd: Started Session 15127706 of user root.
Jul  4 00:40:02 srv1 systemd: Starting Session 15127706 of user root.
Jul  4 00:40:02 srv1 systemd: Removed slice User Slice of root.
Jul  4 00:40:02 srv1 systemd: Stopping User Slice of root.
Jul  4 00:43:25 srv1 systemd: Starting Clean amavisd tmp folder...
Jul  4 00:43:25 srv1 systemd: Starting Clean amavisd quarantine folder...
Jul  4 00:43:25 srv1 systemd: Started Clean amavisd quarantine folder.
Jul  4 00:43:25 srv1 systemd: Started Clean amavisd tmp folder.
Jul  4 00:44:07 srv1 systemd: Starting Generate rndc key for BIND (DNS)...
Jul  4 00:44:07 srv1 systemd: Started Generate rndc key for BIND (DNS).
Jul  4 00:44:07 srv1 systemd: Starting Berkeley Internet Name Domain (DNS)...
Jul  4 00:44:07 srv1 bash: /etc/named.conf:105: zone 'ns1.centos-webpanel.com': already exists previous definition: /etc/named.conf:104
Jul  4 00:44:07 srv1 systemd: named.service: control process exited, code=exited status=1
Jul  4 00:44:07 srv1 systemd: Failed to start Berkeley Internet Name Domain (DNS).
Jul  4 00:44:07 srv1 systemd: Unit named.service entered failed state.
Jul  4 00:44:07 srv1 systemd: named.service failed.
Jul  4 00:50:01 srv1 systemd: Created slice User Slice of root.
Jul  4 00:50:01 srv1 systemd: Starting User Slice of root.
Jul  4 00:50:01 srv1 systemd: Started Session 15128376 of user root.
Jul  4 00:50:01 srv1 systemd: Starting Session 15128376 of user root.
Jul  4 00:50:01 srv1 systemd: Removed slice User Slice of root.
Jul  4 00:50:01 srv1 systemd: Stopping User Slice of root.
Jul  4 00:53:45 srv1 systemd: Starting Cleanup of Temporary Directories...
Jul  4 00:53:45 srv1 systemd: Started Cleanup of Temporary Directories.
« Last Edit: July 04, 2018, 05:05:11 AM by Astronis »

Offline
****
Re: BIND DNS Server failed
« Reply #1 on: July 04, 2018, 07:05:02 AM »
nano /etc/named.conf

Press ctrl+w and then ctrl+t

Enter line 104 and press enter.

Check if 104 and 105 lines are same. If yes the delete one and restart bind

Offline
*
Re: BIND DNS Server failed
« Reply #2 on: July 04, 2018, 09:03:04 PM »
Solved. :)

Thank you!