LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-18-2007, 12:07 PM   #1
Benso37
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Rep: Reputation: 0
Anyone seen this DNS error before?


I setup DNS on a production server after getting it to work okay on a fedora 7 test bed. Setup was easy and straight forward but I'm having a major pain in the you know what with the CNAME feature.

Everytime I add a CNAME and process to save the configuration it pops up with the following error:

"save of zone file /var/named/chroot/var/named/slaves/domain_name.db failed: dns_master_load: /var/named/chroot/var/named/slaves/domain_name:13 name_of_host.domain_name: CNAME and other data."

Can anyone help?...I really need this feature.
 
Old 09-18-2007, 12:16 PM   #2
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
Could you paste the zone file here for us to see the exact contents ?

Also what is line number 13th in file /var/named/chroot/var/named/slaves/domain_name.db ?
 
Old 09-18-2007, 01:09 PM   #3
Benso37
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by digen View Post
Could you paste the zone file here for us to see the exact contents ?

Also what is line number 13th in file /var/named/chroot/var/named/slaves/domain_name.db ?
This is the content of my /var/named/chroot/var/named/slaves/domain_name.db file. Line 13 is hostE...the host I was trying to add CNAME for.

Code:
$TTL 1H
@       SOA     hostname.     root.hostname. (      7
                                                3H
                                                1H
                                                1W
                                                1H )
                                NS      hostname.
                IN      1H      A       xxx.xx.xxx.10
hostA        IN      1H      A       xxx.xx.xxx.11
hostB     IN      1H      A       xxx.xx.xxx.12
hostC IN      1H      A       xxx.xx.xxx.13
hostD IN      1H      A       xxx.xx.xxx.14
hostE IN      1H      A       xxx.xx.xxx.15
 
Old 09-18-2007, 01:13 PM   #4
Benso37
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Original Poster
Rep: Reputation: 0
And these are the two zone files I was able to locate...


Code:
$TTL    86400
@               IN SOA  @       root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           @
                IN A            127.0.0.1
                IN AAAA         ::1

[root@myhost named]# cat /usr/share/system-config-bind/profiles/default/name                                            d/localdomain.zone
$TTL    86400
@               IN SOA  localhost root.localhost (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
localhost       IN A            127.0.0.1
 
Old 10-08-2009, 07:26 PM   #5
charlweed
Member
 
Registered: Jan 2005
Posts: 44

Rep: Reputation: 15
Same problem. You find solution?

I get the same error message.
I suspect that some "permission" needs to be enabled somewhere, but I have no clue...
 
Old 10-08-2009, 08:20 PM   #6
charlweed
Member
 
Registered: Jan 2005
Posts: 44

Rep: Reputation: 15
Workaround

system-config-bind has a "bug" creating CNAME records.
They come out like this:
IN 1H CNAME hg

instead of
hg CNAME trixter

Maybe the tool's version is valid, maybe not. But it gets rejected.
So you must edit the .db file some other way, and put the correct type of CNAME records in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
DNS Error collins92 Linux - Networking 3 01-06-2006 09:06 AM
Having Error form DNS leonardbd Linux - Software 3 01-31-2005 12:34 PM
DNS service error LinuxRam Linux - Networking 4 09-12-2004 05:26 AM
DNS ERROR: Name or service not known. rioguia Linux - Networking 25 10-21-2003 09:46 AM


All times are GMT -5. The time now is 12:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration