Want to subscribe to topics you're interested in?
Become a Member

service nsd restart

Discussion in 'Install & Upgrades or Pre-Install Questions' started by gamal, Jun 30, 2020.

  1. gamal

    gamal Member

    97
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    5:30 AM
    1.13.8
    Please fill in any relevant information that applies to you:

    i tried to restart NSD after adding a new domain, here is what i got

    Code:
    service nsd restart
    
    Restarting nsd (via systemctl):  Job for nsd.service failed because the control process exited with error code. See "systemctl status nsd.service" and "journalctl -xe" for details.
                                                               [FAILED]
    
    Code:
    journalctl -xe
    Jun 30 13:22:45 alpha.3alamtaney.com polkitd[57945]: Unregistered Authentication Agent for unix-process:41960:584747054 (system bus name :1.45231, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconne
    Jun 30 13:22:52 alpha.3alamtaney.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3e:8a:57:7a:08:00 SRC=45.148.120.25 DST=45.148.120.255 LEN=364 TOS=0x00 PREC=0x00 TTL=64 ID=45368 DF PROTO=UDP SPT=37294 DPT
    Jun 30 13:23:01 alpha.3alamtaney.com crond[25005]: (*system*) RELOAD (/etc/cron.d/sysstat)
    Jun 30 13:23:09 alpha.3alamtaney.com polkitd[57945]: Registered Authentication Agent for unix-process:42133:584749532 (system bus name :1.45232 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/Authe
    Jun 30 13:23:09 alpha.3alamtaney.com systemd[1]: Starting LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server...
    -- Subject: Unit nsd.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nsd.service has begun starting up.
    Jun 30 13:23:09 alpha.3alamtaney.com nsd[42139]: Starting nsd:/etc/nsd/nsd.conf:61: error: duplicate zone
    Jun 30 13:23:09 alpha.3alamtaney.com nsd[42139]: /etc/nsd/nsd.conf:65: error: duplicate zone
    Jun 30 13:23:09 alpha.3alamtaney.com nsd[42139]: /etc/nsd/nsd.conf:68: error: duplicate zone
    Jun 30 13:23:09 alpha.3alamtaney.com nsd[42139]: read /etc/nsd/nsd.conf failed: 3 errors in configuration file
    Jun 30 13:23:09 alpha.3alamtaney.com nsd[42139]: [1593523389] nsd[42145]: error: could not read config: /etc/nsd/nsd.conf
    Jun 30 13:23:09 alpha.3alamtaney.com polkitd[57945]: Unregistered Authentication Agent for unix-process:42133:584749532 (system bus name :1.45232, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconne
    Jun 30 13:23:09 alpha.3alamtaney.com systemd[1]: nsd.service: control process exited, code=exited status=7
    Jun 30 13:23:09 alpha.3alamtaney.com systemd[1]: Failed to start LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server.
    -- Subject: Unit nsd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nsd.service has failed.
    --
    -- The result is failed.
    Jun 30 13:23:09 alpha.3alamtaney.com systemd[1]: Unit nsd.service entered failed state.
    Jun 30 13:23:09 alpha.3alamtaney.com systemd[1]: nsd.service failed.
    Jun 30 13:23:22 alpha.3alamtaney.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3e:8a:57:7a:08:00 SRC=45.148.120.25 DST=45.148.120.255 LEN=364 TOS=0x00 PREC=0x00 TTL=64 ID=60525 DF PROTO=UDP SPT=37294 DPT
    Jun 30 13:23:25 alpha.3alamtaney.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3e:30:bc:89:74:8e:f8:74:1b:00:08:00 SRC=185.175.93.24 DST=45.148.120.27 LEN=40 TOS=0x00 PREC=0x00 TTL=248 ID=6146 PROTO=TCP SPT=50795 DPT=5962
    Jun 30 13:23:49 alpha.3alamtaney.com sshd[42186]: Connection closed by 106.12.90.45 port 54484 [preauth]
    Jun 30 13:23:52 alpha.3alamtaney.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3e:8a:57:7a:08:00 SRC=45.148.120.25 DST=45.148.120.255 LEN=364 TOS=0x00 PREC=0x00 TTL=64 ID=23049 DF PROTO=UDP SPT=37294 DPT
    Jun 30 13:24:22 alpha.3alamtaney.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3e:8a:57:7a:08:00 SRC=45.148.120.25 DST=45.148.120.255 LEN=364 TOS=0x00 PREC=0x00 TTL=64 ID=34387 DF PROTO=UDP SPT=37294 DPT
    Jun 30 13:24:47 alpha.3alamtaney.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3e:30:bc:89:74:8e:f8:74:1b:00:08:00 SRC=45.14.150.140 DST=45.148.120.27 LEN=40 TOS=0x00 PREC=0x00 TTL=246 ID=58518 PROTO=TCP SPT=58665 DPT=280
    Jun 30 13:24:52 alpha.3alamtaney.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3e:8a:57:7a:08:00 SRC=45.148.120.25 DST=45.148.120.255 LEN=364 TOS=0x00 PREC=0x00 TTL=64 ID=49258 DF PROTO=UDP SPT=37294 DPT
    Jun 30 13:24:54 alpha.3alamtaney.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3e:30:bc:89:74:8e:f8:74:1b:00:08:00 SRC=185.176.27.62 DST=45.148.120.27 LEN=40 TOS=0x00 PREC=0x00 TTL=248 ID=18500 PROTO=TCP SPT=44591 DPT=339
    Jun 30 13:25:01 alpha.3alamtaney.com systemd[1]: Started Session 22574 of user root.
    -- Subject: Unit session-22574.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-22574.scope has finished starting up.
    --
    -- The start-up result is done.
    Jun 30 13:25:01 alpha.3alamtaney.com CROND[42262]: (root) CMD (/usr/lib64/sa/sa1 1 1)
    Jun 30 13:25:05 alpha.3alamtaney.com postfix/qmgr[57785]: 0054E20330: from=<nginx@alpha.3alamtaney.com>, size=1974, nrcpt=1 (queue active)
    Jun 30 13:25:06 alpha.3alamtaney.com postfix/smtp[42269]: Untrusted TLS connection established to mta6.am0.yahoodns.net[67.195.228.111]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
    Jun 30 13:25:06 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: host mta6.am0.yahoodns.net[67.195.228.111] said: 421 4.7.0 [TSS04] Messages from 45.148.120.27 temporarily deferred due to user complaints - 4.16.55.1; see https://hel
    Jun 30 13:25:06 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: lost connection with mta6.am0.yahoodns.net[67.195.228.111] while sending RCPT TO
    Jun 30 13:25:07 alpha.3alamtaney.com postfix/smtp[42269]: Untrusted TLS connection established to mta6.am0.yahoodns.net[67.195.204.73]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
    Jun 30 13:25:07 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: host mta6.am0.yahoodns.net[67.195.204.73] said: 421 4.7.0 [TSS04] Messages from 45.148.120.27 temporarily deferred due to user complaints - 4.16.55.1; see https://help
    Jun 30 13:25:07 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: lost connection with mta6.am0.yahoodns.net[67.195.204.73] while sending RCPT TO
    Jun 30 13:25:07 alpha.3alamtaney.com postfix/smtp[42269]: Untrusted TLS connection established to mta7.am0.yahoodns.net[67.195.204.79]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
    Jun 30 13:25:08 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: host mta7.am0.yahoodns.net[67.195.204.79] said: 421 4.7.0 [TSS04] Messages from 45.148.120.27 temporarily deferred due to user complaints - 4.16.55.1; see https://help
    Jun 30 13:25:08 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: lost connection with mta7.am0.yahoodns.net[67.195.204.79] while sending RCPT TO
    Jun 30 13:25:08 alpha.3alamtaney.com postfix/smtp[42269]: Untrusted TLS connection established to mta5.am0.yahoodns.net[98.136.96.77]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
    Jun 30 13:25:09 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: host mta5.am0.yahoodns.net[98.136.96.77] said: 421 4.7.0 [TSS04] Messages from 45.148.120.27 temporarily deferred due to user complaints - 4.16.55.1; see https://help.
    Jun 30 13:25:09 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: lost connection with mta5.am0.yahoodns.net[98.136.96.77] while sending RCPT TO
    Jun 30 13:25:09 alpha.3alamtaney.com postfix/smtp[42269]: Untrusted TLS connection established to mta6.am0.yahoodns.net[98.136.96.76]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
    Jun 30 13:25:10 alpha.3alamtaney.com postfix/smtp[42269]: 0054E20330: to=<navarisun@yahoo.com>, relay=mta6.am0.yahoodns.net[98.136.96.76]:25, delay=274738, delays=274733/0.05/4.7/0.11, dsn=4.7.0, status=deferred (host mta6.am0.yahoodns.n
    Jun 30 13:25:22 alpha.3alamtaney.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3e:8a:57:7a:08:00 SRC=45.148.120.25 DST=45.148.120.255 LEN=364 TOS=0x00 PREC=0x00 TTL=64 ID=58829 DF PROTO=UDP SPT=37294 DPT
    Jun 30 13:25:31 alpha.3alamtaney.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3e:30:bc:89:74:8e:f8:74:1b:00:08:00 SRC=193.27.228.13 DST=45.148.120.27 LEN=40 TOS=0x00 PREC=0x00 TTL=249 ID=57021 PROTO=TCP SPT=52884 DPT=205
    Jun 30 13:25:44 alpha.3alamtaney.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:16:3e:30:bc:89:74:8e:f8:74:1b:00:08:00 SRC=49.233.199.240 DST=45.148.120.27 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=16778 PROTO=TCP SPT=43915 DPT=24
    Jun 30 13:25:52 alpha.3alamtaney.com kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:16:3e:8a:57:7a:08:00 SRC=45.148.120.25 DST=45.148.120.255 LEN=364 TOS=0x00 PREC=0x00 TTL=64 ID=5613 DF PROTO=UDP SPT=37294 DPT=
    lines 1480-1542/1542 (END)
    

     
  2. brijendrasial

    brijendrasial Active Member

    125
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    1:00 AM
    1.13.9
    10.0.22-MariaDB
    Its showing duplicate zone. Can you please check file /etc/nsd/nsd.conf line 61, 65 and 68 as its duplicate.

    or can you share your /etc/nsd/nsd.conf here

    Code:
    cat /etc/nsd/nsd.conf
     
  3. gamal

    gamal Member

    97
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    5:30 AM
    1.13.8
    thanx so much it was actually a dublicate so i solved it be removing the extra zones