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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2012, 02:12 AM   #31
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221

My mistake

I forgot the named service never started so you won't get any output.
 
Old 10-04-2012, 02:31 AM   #32
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
Alhumdulillah!

So nice of you dear. After disabling selinux, named service started atlast!

Thanks a lot to both of you!

now I am going ahead in DNS configuration if I find difficult I will come back here.
 
Old 10-04-2012, 02:32 AM   #33
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@deep27ak

Quote:
Can you check the port no you are using for named.conf
It should be 53 instead of 953 as shown in the error
Please note that 953 is the port rndc is listening on, not the port that named is listening

@OP
Disable SELinux temporarily, to verify that it's the culprit
If you have used yum to install bind related stuff, you shouldn't have such problems
 
1 members found this post helpful.
Old 10-05-2012, 08:00 AM   #34
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
I have another query:

When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.

But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.

LAN snacerio:


DSL router: 192.168.1.1 (itself is a DNS server for internet provided by PTCL internet provider)
192.168.1.2 to onwards we have clients.

Now both PC1 and PC2 are on this local net. I have defined in client /etc/resolv.conf
search example.conf
nameserver 192.168.1.91 # DNS for local net
nameserver 192.168.1.1 # dns for internet

clients can ping www.google.com but can't dig or ping client1.example.com.

Last edited by uk.engr; 10-05-2012 at 08:01 AM.
 
Old 10-05-2012, 09:24 AM   #35
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Disable SELinux temporarily, to verify that it's the culprit
If you have used yum to install bind related stuff, you shouldn't have such problems

Yes when I disable SELinux it works, when I enable SELinux it named service doesn't start.

Yes I have installed it via yum, but I faced that problem don't know why
 
Old 10-05-2012, 10:18 AM   #36
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Yes when I disable SELinux it works, when I enable SELinux it named service doesn't start.

Yes I have installed it via yum, but I faced that problem don't know why
I'm not using SELinux, but from this doc, looks like that if you want to keep SELinux enabled (you should as it's a good security measure), you can either use:
Code:
named_disable_trans=1
to disable SELinux just for named, or use:
Code:
chcon -R system_u:object_r:named_cache_t /var/named/chroot/var/named/data
to relabel the directory in question

Regards
 
Old 10-06-2012, 03:06 AM   #37
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
I have another query:

When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.

But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.

LAN snacerio:

DSL router: 192.168.1.1 (itself is a DNS server for internet provided by PTCL internet provider)
192.168.1.2 to onwards we have clients.

Now both PC1 and PC2 are on this local net. I have defined in client /etc/resolv.conf
search example.conf
nameserver 192.168.1.91 # DNS for local net
nameserver 192.168.1.1 # dns for internet

clients can ping www.google.com but can't dig or ping client1.example.com.
 
Old 10-06-2012, 03:36 AM   #38
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.

But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.
I'm sure that I understand what you mean with the above. When can a client resolve a hostname and when it can't?

BTW, you have an error in /etc/resolv.conf. It should read:
Code:
search example.com
 
Old 10-08-2012, 05:42 AM   #39
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uk.engr View Post
I have another query:

When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.

But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.

LAN snacerio:

DSL router: 192.168.1.1 (itself is a DNS server for internet provided by PTCL internet provider)
192.168.1.2 to onwards we have clients.

Now both PC1 and PC2 are on this local net. I have defined in client /etc/resolv.conf
search example.conf
nameserver 192.168.1.91 # DNS for local net
nameserver 192.168.1.1 # dns for internet

clients can ping www.google.com but can't dig or ping client1.example.com.
Above issue also resolved when I stopped iptables service on DNS server. Thanks
 
Old 09-28-2013, 02:30 AM   #40
divya thambiraj
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Rep: Reputation: Disabled
Smile divya

HI friends,

* If you find error in named configuration file (master file not loaded, named.conf not found) make sure Did you create the named.conf in proper location. Actual location is "/var/named/chroot/etc/named.conf"

If you are not created in this location please move named.conf to this location, then try to start named service.
 
Old 10-08-2013, 03:24 AM   #41
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by divya thambiraj View Post
HI friends,

* If you find error in named configuration file (master file not loaded, named.conf not found) make sure Did you create the named.conf in proper location. Actual location is "/var/named/chroot/etc/named.conf"

If you are not created in this location please move named.conf to this location, then try to start named service.
This is when you have installed bind-chroot rpm

You need to make sure which bind rpm are you using for BIND configuration. Verify the logs properly as it would give more information about the error before taking any step.
 
Old 10-09-2013, 04:35 AM   #42
divya thambiraj
LQ Newbie
 
Registered: Sep 2013
Posts: 3

Rep: Reputation: Disabled
Smile HI

Ya i used to install bind* (bind-chroot) package
 
Old 03-23-2016, 10:49 PM   #43
nanasupriatna0902
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Rep: Reputation: Disabled
please tell me what worng with my configuration dns centos ?? huhu

Error in named configuration:
zone belogix.com/IN: loaded serial 2011071001
dns_rdata_fromtext: /var/named/reverse.belogix.com:8: near eol: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: loading from master file /var/named/reverse.belogix.com failed: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/0.168.192.in-addr.arpa/IN: unexpected end of input
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
[FAILED]
 
Old 03-24-2016, 01:24 AM   #44
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@nanasupriatna0902

Please start you own thread giving more details about your problem.
Especially post the /var/named/reverse.belogix.com zonefile, as it's the one that has errors:
Quote:
dns_rdata_fromtext: /var/named/reverse.belogix.com:8: near eol: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: loading from master file /var/named/reverse.belogix.com failed: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/0.168.192.in-addr.arpa/IN: unexpected end of input
Regards
 
  


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
DNS configuration problem in Fedora Core 11., linuxjamil Linux - Server 1 10-15-2009 08:59 AM
having problem in seting dns configuration in fedora9 perky.nishi Linux - Networking 2 03-20-2009 11:22 AM
i have problem during the dns configuration in centos iyub Linux - Newbie 1 10-03-2007 07:41 AM
DNS configuration problem asimpeter Linux - Networking 1 03-26-2004 10:11 AM
problem with dns configuration ssrikant Linux - General 12 05-22-2003 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:00 AM.

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