LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-28-2011, 01:53 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

In the zone file you have given an A entry pointing to 192.168.0.233

and in named.conf you are using 192.168.0.1?

what is the ip of your machine?

and the answer to your solution is

In your named.rfc1912.zones and named.root.hints

there is a same entry of

Code:
zone "." IN {
type hint;
file "named.ca";
};
you can check by this command
Code:
# cat -n named.root.hints | grep 12
12 zone “.” IN {

# cat -n named.rfc1912.zones | grep 10
10 zone “.” IN {
simply remove

Code:
zone "." IN {
type hint;
file "named.ca";
};
from named.rfc1912.zones

NOTE: always take a backup of the original configuration file before taking any step
 
Old 10-28-2011, 05:50 AM   #32
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well i did as u said but i got the following error:

Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 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 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone example.com/IN: loaded serial 42
zone 0.168.192.in-addr.arpa/IN: loaded serial 1997022700
zone my.internal.zone/IN: loading master file my.internal.zone.db: file not found
internal/my.internal.zone/IN: file not found
zone my.ddns.internal.zone/IN: loading master file slaves/my.ddns.internal.zone.db: file not found
internal/my.ddns.internal.zone/IN: file not found
zone my.external.zone/IN: loading master file my.external.zone.db: file not found
external/my.external.zone/IN: file not found
[FAILED]

Last edited by SarahGurung; 10-28-2011 at 05:53 AM.
 
Old 10-28-2011, 06:12 AM   #33
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
where have you copied all your zone files?

Code:
#cp /usr/share/doc/bind.x.x.x/sample/etc/*   /var/named/chroot/etc/


#cp /usr/share/doc/bind.x.x.x/sample/var/named/*   /var/named/chroot/var/named/

just lookout for all the zone files

Code:
example.com.zone
named.local
localhost.zone
localdomain.zone
.......
......
......
it should be in
Code:
/var/named/chroot/var/named/

or

/var/named/
 
Old 10-28-2011, 06:22 AM   #34
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
it is in /var/named/chroot/var/named/...
 
Old 10-28-2011, 03:39 PM   #35
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
Code:
#cd /var/named/chroot/var/named
Code:
#ls -l
(post the output)
 
Old 10-28-2011, 10:06 PM   #36
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well the output is :


rw-r----- 1 root root 454 Oct 28 12:36 192.168.0.zone
drwxrwx--- 2 named named 4096 Aug 25 2004 data
-rw-r----- 1 root root 402 Oct 28 16:25 example.com.zone
-rw-r----- 1 root named 198 Feb 22 2011 localdomain.zone
-rw-r----- 1 root named 195 Feb 22 2011 localhost.zone
-rw-r----- 1 root named 427 Feb 22 2011 named.broadcast
-rw-r----- 1 root named 1892 Feb 22 2011 named.ca
-rw-r----- 1 root named 424 Feb 22 2011 named.ip6.local
-rw-r----- 1 root named 426 Feb 22 2011 named.local
-rw-r----- 1 root named 427 Feb 22 2011 named.zero
drwxrwx--- 2 named named 4096 Jul 27 2004 slaves
 
Old 10-29-2011, 03:56 AM   #37
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 SarahGurung View Post
well i did as u said but i got the following error:

Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 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 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone example.com/IN: loaded serial 42
zone 0.168.192.in-addr.arpa/IN: loaded serial 1997022700
zone my.internal.zone/IN: loading master file my.internal.zone.db: file not found
internal/my.internal.zone/IN: file not found
zone my.ddns.internal.zone/IN: loading master file slaves/my.ddns.internal.zone.db: file not found
internal/my.ddns.internal.zone/IN: file not found
zone my.external.zone/IN: loading master file my.external.zone.db: file not found
external/my.external.zone/IN: file not found
[FAILED]
checkout the names of the missing files as you can see the mentioned files are missing so look for them in your machine

Code:
#locate (filename)
I don't think named.conf should ask for all these files
Just to make sure
have you copied
Code:
named.caching-nameserver in /var/named/chroot/etc/named.conf
Code:
#cp /usr/share/doc/bind.x.x.x/sample/var/named/*   /var/named/chroot/var/named/
Code:
#cp /usr/share/doc/bind.x.x.x/sample/var/named/slaves/*   /var/named/chroot/var/named/slaves/
and restart the server
hopefully this should work
 
Old 10-30-2011, 10:22 PM   #38
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
ya named.caching-nameserver was copied from before only but what do you want me to copy from /usr/share/doc/bind-9.3.6 /sample/var/named/slaves because in that directory it has the following:

arm CHANGES COPYRIGHT misc README README.DBUS sample

Thanks..
 
Old 10-30-2011, 11:58 PM   #39
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
and the files which are missing as per the output above i.e my.internal.zone.db and my.external.zone.db are present in /usr/share/doc/bind-9.3.6/sample/var/named/ but not in the /var/named/chroot/var/named/,so should i copy it there?
 
Old 10-31-2011, 12:01 AM   #40
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 SarahGurung View Post
and the files which are missing as per the output above i.e my.internal.zone.db and my.external.zone.db are present in /usr/share/doc/bind-9.3.6/sample/var/named/ but not in the /var/named/chroot/var/named/,so should i copy it there?
Of all the bind I have configured my.internal.zone.db and my.external.zone.db were located under slaves directory.

any how I think you know what to do
 
Old 10-31-2011, 12:13 AM   #41
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
oh k k...Thanks..
 
Old 10-31-2011, 12:44 AM   #42
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well i copied everything but still then when i start or even restart it says named failed though it does not give the previous errors..
 
Old 10-31-2011, 12:46 AM   #43
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 SarahGurung View Post
well i copied everything but still then when i start or even restart it says named failed though it does not give the previous errors..
with no errors?
 
Old 10-31-2011, 12:48 AM   #44
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
ya with no errors,it just said FAILED...
 
Old 10-31-2011, 12:59 AM   #45
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 SarahGurung View Post
ya with no errors,it just said FAILED...
check /var/log/messages
 
  


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] [SAMBA] How to track windows user access , create files /modify files on linux SMB efciem Linux - Server 2 05-16-2010 08:45 AM
Synchronizing DNS Servers - automatically create new zones assi Linux - Networking 3 03-21-2009 10:58 AM
bind9 zones config files help lucastic Linux - Server 1 09-25-2007 04:24 PM
Samba: "homes" share, cannot create directories, can create files Herg Linux - Software 1 09-14-2006 08:48 AM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM

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

All times are GMT -5. The time now is 10:16 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