Wrong zone file..
Barry Margolin
barmar at alum.mit.edu
Tue Jul 4 20:53:05 UTC 2006
In article <e8e92b$4hv$1 at sf1.isc.org>,
"John Clement" <john.clement at readingroom.com> wrote:
> 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)
Correct. Since this.domain.com is an alias, it can't also have an MX
record of its own.
>
> So I added this.domain.com to /etc/named.conf and created
> this.domain.com's own zone file but now get
If this.domain.com's zone file tries to make it an alias for
anotherdomain.com, it won't work, because the same name cannot be both
an alias and also have an SOA record of its own.
>
> # 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
--
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
More information about the bind-users
mailing list