LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-25-2013, 03:40 AM   #1
TheR_
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Rep: Reputation: 0
DNS record update failed


I am trying to setup ns record for domain hosted on google without www name. But I keep geting this error in syslog:

Jan 25 10:31:07 mydns1 named[4421]: zone mydomain.com/IN: loading from master file master/mydomain.com failed: CNAME and other data

Zone file for domain is:
--------------------------
; zone file za mydomain.com
$TTL 1d ; 172800 secs default TTL for zone
@ IN SOA ns1.my.com. postmaster.my.com. (
2013012502 ; se = serial number
12h ; ref = refresh
15m ; ret = update retry
10d ; ex = expiry
3h ; min = minimum
)
$ORIGIN mydomain.com.
IN NS ns1.my.com.
IN NS ns2.my.com.
; IN MX 10 mail
www IN CNAME ghs.google.com.
mydomain.com. IN CNAME ghs.google.com.

---------------------------
Last record should enable domain be accessed as mydomain.com. But it throws an error. What am I doing wrong?

by
TheR
 
Old 01-25-2013, 04:42 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

This is how bind works (see 2.4 of RFC-1912)
You should add an A RR for the domain. Something like that (taken from one of my customers zone):
Code:
<snip>
                        IN      A               216.239.32.21
                        IN      A               216.239.34.21
                        IN      A               216.239.36.21
                        IN      A               216.239.38.21
www                 IN      CNAME      ghs.google.com.
You could also use:
Code:
 IN      CNAME      ghs.google.com.
(note the blank space at the beginning of the line), but strictly speaking it's not correct according to the above rfc

Regards

Last edited by bathory; 01-25-2013 at 08:13 AM. Reason: additional info
 
  


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
[SOLVED] DNS: A Record and PTR Record hydraMax Linux - Server 4 12-21-2010 10:28 PM
Reverse DNS: Why is the record on the datacenter DNS server instead? Swakoo Linux - Networking 2 09-20-2007 04:42 AM
Update The DNS Server Record Dynamicaly javabb Linux - Software 1 01-05-2005 02:59 PM
Problem in update The DNS Server Record Dynamically javabb Linux - Newbie 1 01-05-2005 02:58 PM
Problem in Update The DNS Server Record Dynamicaly javabb Linux - Networking 0 01-05-2005 04:49 AM

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

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