Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2018-11-14, 20:07:05

Author Topic: Named status, some notices/errors?  (Read 2070 times)

0 Members and 1 Guest are viewing this topic.

Offline idove

  • Valuable Member
  • *
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Named status, some notices/errors?
« on: 2017-09-07, 09:11:23 »
Hello
today I've noticed this in named service status (kloxomr7 + centos7)

Code: [Select]
[root@server public_html]# systemctl status named.service
? named.service - LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server
   Loaded: loaded (/etc/rc.d/init.d/named; bad; vendor preset: disabled)
   Active: active (running) since Pon 2017-09-04 10:38:09 CEST; 2 days ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/named.service
           ??31854 /usr/sbin/named -u named

Ruj 04 10:38:09 server.my-domain.com named[31854]: generating session key for dynamic DNS
Ruj 04 10:38:09 server.my-domain.com named[31854]: couldn't mkdir '/var/run/named': Permission denied
Ruj 04 10:38:09 server.my-domain.com named[31854]: could not create /var/run/named/session.key
Ruj 04 10:38:09 server.my-domain.com named[31854]: failed to generate session key for dynamic DNS: permission denied
Ruj 04 10:38:09 server.my-domain.com named[31854]: sizing zone task pool based on 3 zones
Ruj 04 10:38:09 server.my-domain.com named[31854]: set up managed keys zone for view _default, file 'managed-keys.bind'
Ruj 04 10:38:09 server.my-domain.com named[31854]: command channel listening on 127.0.0.1#953
Ruj 04 10:38:09 server.my-domain.com named[31854]: the working directory is not writable
Ruj 04 10:38:09 server.my-domain.com named[31849]: Starting named: [  OK  ]
Ruj 04 10:38:09 server.my-domain.com systemd[1]: Started LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server.

Conclusion,
/var/run/named path doesn't exists

So I do this:
Code: [Select]
#systemctl stop named.service
#mkdir /var/run/named
#chown named.named /var/run/named
#systemctl start named.service

[root@server named]# ls -al /var/run/named
total 8
drwxr-xr-x  2 named named  80 Ruj  7 09:16 .
drwxr-xr-x 31 root  root  940 Ruj  7 09:16 ..
-rw-r--r--  1 named named   6 Ruj  7 09:16 named.pid
-rw-------  1 named named 102 Ruj  7 09:16 session.key

[root@server named]# systemctl status named.service
? named.service - LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server
   Loaded: loaded (/etc/rc.d/init.d/named; bad; vendor preset: disabled)
   Active: active (running) since ?et 2017-09-07 09:16:18 CEST; 1min 26s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 19885 ExecStop=/etc/rc.d/init.d/named stop (code=exited, status=0/SUCCESS)
  Process: 19893 ExecStart=/etc/rc.d/init.d/named start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/named.service
           ??19898 /usr/sbin/named -u named

Ruj 07 09:16:18 server.moj-server.info named[19898]: listening on IPv6 interfaces, port 53
Ruj 07 09:16:18 server.moj-server.info named[19898]: listening on IPv4 interface lo, 127.0.0.1#53
Ruj 07 09:16:18 server.moj-server.info named[19898]: listening on IPv4 interface eth0, 77.81.247.151#53
Ruj 07 09:16:18 server.moj-server.info named[19898]: generating session key for dynamic DNS
Ruj 07 09:16:18 server.moj-server.info named[19898]: sizing zone task pool based on 3 zones
Ruj 07 09:16:18 server.moj-server.info named[19898]: set up managed keys zone for view _default, file 'managed-keys.bind'
Ruj 07 09:16:18 server.moj-server.info named[19898]: command channel listening on 127.0.0.1#953
Ruj 07 09:16:18 server.moj-server.info named[19898]: the working directory is not writable
Ruj 07 09:16:18 server.moj-server.info named[19893]: Starting named: [  OK  ]
Ruj 07 09:16:18 server.moj-server.info systemd[1]: Started LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server.


! the working directory is not writable ! - what directory?
Is that link ok?
Code: [Select]
lrwxrwxrwx  1 root   root     25 Ruj  7 09:16 named.pid -> //var/run/named/named.pid

Tnx for advanced suggestions.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,382
  • Karma: +115/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Named status, some notices/errors?
« Reply #1 on: 2017-09-07, 09:30:18 »
Inform here 'chkconfig --list|grep ^named; systemctl list-unit-files|grep ^named'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Named status, some notices/errors?
« Reply #2 on: 2017-09-07, 09:31:06 »
Code: [Select]
[root@server run]# chkconfig --list|grep ^named; systemctl list-unit-files|grep ^named

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

named          0:off 1:off 2:on 3:on 4:on 5:on 6:off

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,382
  • Karma: +115/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Named status, some notices/errors?
« Reply #3 on: 2017-09-07, 09:31:36 »
To know named service load or not, use 'ps aux|grep ^named|grep -e grep'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Named status, some notices/errors?
« Reply #4 on: 2017-09-07, 09:57:12 »
Your line return nothing:
Code: [Select]
[root@server run]# ps aux|grep ^named|grep -e grep

[root@server run]# ps aux | grep named
named    19898  0.0  0.3 235032 14124 ?        Ssl  09:16   0:00 /usr/sbin/named -u named
root     21285  0.0  0.0 112644   992 pts/0    S+   10:07   0:00 grep --color=auto named
[root@server run]#



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,382
  • Karma: +115/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Named status, some notices/errors?
« Reply #5 on: 2017-09-07, 12:23:39 »
Named already running.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Named status, some notices/errors?
« Reply #6 on: 2017-09-07, 12:56:13 »
Yes,
everything is OK and it is working.  I'm just asking if there is something to make it without this error.

I found later that this is "normal" error/notice, that sometimes is better not to change that ;).

Tnx.

Offline priyadi

  • Junior Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Named status, some notices/errors?
« Reply #7 on: 2018-02-03, 10:13:52 »
you can try chown -R named.named /opt/configs/nsd/conf

look working directory from this config /opt/configs/bind/conf/defaults/named.options.conf

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.039 seconds with 18 queries.

web stats analysis