Wrong zone file..

John Clement john.clement at readingroom.com
Mon Jul 3 10:58:31 UTC 2006


I'm trying to get a sub-domain set up as follows:

this.domain.com. IN	MX	mail.anotherdomain.com.

*.this.domain.com.	IN CNAME	anotherdomain.com.
This.domain.com.	IN	CNAME	anotherdomain.com .

However if I put this in domain.com's zone file I get an error

Jul  3 10:19:44 lepton named[30325]: this.domain.com has CNAME and other
data (invalid) Jul  3 10:19:44 lepton named[30325]:
domain.com.db:28:this.domain.com: CNAME and OTHER data error Jul  3
10:19:44 lepton named[30325]: master zone "domain.com" (IN) rejected due
to errors (serial 2006070304)

So I added this.domain.com to /etc/named.conf and created
this.domain.com's own zone file but now get

# dig this.domain.com

; <<>> DiG 8.4 <<>> this.domain.com
;; res options: init recurs defnam dnsrch no-nibble2 ;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52825 ;; flags: qr
aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUERY
SECTION:
;;      this.domain.com, type = A, class = IN

;; AUTHORITY SECTION:
domain.com.             4H IN SOA       dns0.ourdnsservers.com.
hostmaster.ourdns.net. (
                                        2006070304      ; serial
                                        3H              ; refresh
                                        1H              ; retry
                                        1W              ; expiry
                                        4H )            ; minimum


;; Total query time: 2 msec
;; FROM: lepton.ourdnsservers.net. to SERVER: 192.168.0.21 ;; WHEN: Mon
Jul  3 10:36:00 2006 ;; MSG SIZE  sent: 34  rcvd: 110

So it looks like its going to domain.com for the answer, not
this.domain.com, is there any reason for this?

Thanks - jc



More information about the bind-users mailing list