LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2017, 11:37 AM   #1
blason
Member
 
Registered: Feb 2016
Posts: 122

Rep: Reputation: Disabled
I am unable to start named.service using systemctl


Hi Guys,

I am unable to start the named.service using systemctl parameters on centOS 7.4. but If I am starting with command line it starts properly.

Can someone please help?

● 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 Sun 2017-11-26 23:06:04 IST; 6s ago
Process: 1589 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)

Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12aww7mdklwvh1sgd2kk1lwsr3.net/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12b0jv17vnwgdb6bmxf13yuq1e.net/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12b5sba8fsvv29jmm68o6rwk.org/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12b8ko6forrxv1oml8251kfizkh.com/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12bc8ds10wet991cms4qtnwlfzl.org/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12bdyz8slslfbr1dhi81x20kcq.net/IN: loaded serial 2006060301
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: named.service: control process exited, code=exited status=1
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: Unit named.service entered failed state.
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: named.service failed.

#######################################

Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12aw0kr4m7qoc13wzvhwnf813v.org/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12aww7mdklwvh1sgd2kk1lwsr3.net/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12b0jv17vnwgdb6bmxf13yuq1e.net/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12b5sba8fsvv29jmm68o6rwk.org/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12b8ko6forrxv1oml8251kfizkh.com/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12bc8ds10wet991cms4qtnwlfzl.org/IN: loaded serial 2006060301
Nov 26 23:05:56 dnsdf.isnlab.in bash[1589]: zone 12bdyz8slslfbr1dhi81x20kcq.net/IN: loaded serial 2006060301
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: named.service: control process exited, code=exited status=1
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
-- Subject: Unit named.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit named.service has failed.
--
-- The result is failed.
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: Unit named.service entered failed state.
Nov 26 23:06:04 dnsdf.isnlab.in systemd[1]: named.service failed.
Nov 26 23:06:04 dnsdf.isnlab.in polkitd[639]: Unregistered Authentication Agent for unix-process:1579:182365 (system bus name :1.40, object path /org/freedesktop/Policy
 
Old 11-27-2017, 05:39 AM   #2
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 629

Rep: Reputation: Disabled
I hope I'm not insulting your intelligence but just to be sure, you have enabled the service first, have you?
Code:
systemctl enable named.service && systemctl start named.service
 
Old 11-28-2017, 12:01 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by petelq View Post
I hope I'm not insulting your intelligence but just to be sure, you have enabled the service first, have you?
Code:
systemctl enable named.service && systemctl start named.service
i don't think this could have anything to do with the error shown.

"enable" means: start service next time systemd is restarted (usually after a reboot), and from then on always.
"start" means: start service now, but without the reboot thing.

op's description has been unclear about this: "unable to start the named.service using systemctl parameters. but If I am starting with command line it starts properly" - i have no idea what that means.
but the error posted is clearly an error, and not just the service not starting. meaning, it clearly tries to start.
 
Old 11-28-2017, 12:10 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,736

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Quote:
Originally Posted by blason View Post
Active: failed (Result: exit-code) since Sun 2017-11-26 23:06:04 IST; 6s ago
Process: 1589 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)
Isn't this saying that if "$DISABLE_ZONE_CHECKING" == "yes" to fail to start?
Is $DISABLE_ZONE_CHECKING set to yes? [I don't know where that variable is set off the top of my head]
 
Old 11-30-2017, 12:59 PM   #5
blason
Member
 
Registered: Feb 2016
Posts: 122

Original Poster
Rep: Reputation: Disabled
Well what I mean is; if I tries to start with /usr/sbin/named -u named -c /etc/named.com -n 4 ..it starts perfectly.
Not sure if this is happening due to permission issue or what but I am complete clueless here
 
Old 12-01-2017, 12:57 PM   #6
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Sounds familiar.
Mine mistake was that service to run was:
Code:
# systemctl start named-chroot.service
because I've installed it chroot variant and configured it to run as chroot.
However I was trying to start original named and this was wrong.
 
Old 09-30-2018, 01:29 PM   #7
VietPublic
LQ Newbie
 
Registered: Sep 2018
Location: Ha Noi, Vietnam
Posts: 1

Rep: Reputation: Disabled
My solution :
edit /var/named/mydomain.com.hosts
remove below line
mydomain.com. IN NS mydomain.com.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What is the purpose of systemctl start named.service? Echopurrs Linux - Newbie 1 07-07-2014 12:43 AM
Unable to start the named service vbarun2000 Linux - Newbie 1 04-02-2014 11:48 AM
unable to START MySQL server at BOOT "systemctl enable mysqld.service" does not work cyberdome Linux - Newbie 2 03-11-2014 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration