CNAME setup issue

Tim Traver tt-list at simplenet.com
Mon Jun 25 21:54:11 UTC 2007


Hi all,

ok, this may be a simple question, but I've racked my brain over it for 
too long and can't figure it out...

I have a DNS server set up to be an authoritative server only. It has 
the following main configuration parameters :

options {
        directory "/etc/namedb";
        recursion no;
        interface-interval 30;
        allow-transfer { any; };
        dump-file "/var/dump/named_dump.db";
        statistics-file "/var/log/named.stats";
        query-source address * port 33701;
        notify no;
};

I have a zone file set up for a domain that looks like this (will use 
the example of domain2.com):

$TTL 4h
@               IN SOA ns3.domain1.com. postmaster.domain1.com. (
                2007062508                      ; Serial
                3600 3600 1209600 3600);       ; 
Refresh,Retry,Expire,Min TTL

                IN NS   ns3.domain1.com.
                IN NS   ns4.domain1.com.
;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
domain2.com.  IN      CNAME   ghs.google.com.
www     IN      CNAME   ghs.google.com.


Problem is, that if I query the server directly, I get the following 
answer :

root at ns1# dig @ns3.simplenet.com mediabait.com

; <<>> DiG 9.3.1 <<>> @ns3.domain1.com domain2.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 55721
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;domain2.com.                 IN      A

;; Query time: 2 msec
;; SERVER: 209.xxx.xx.x#53(209.xxx.xx.x)
;; WHEN: Mon Jun 25 14:47:33 2007
;; MSG SIZE  rcvd: 31

But, when I do a query on another domain that I know has a CNAME as 
well, I get the following :

;store.domain3.com.      IN      A

;; ANSWER SECTION:
store.domain3.com. 14400 IN      CNAME   www.empirevstore.com.

Does anyone see a problem with this setup ???

Thanks,

Tim.







More information about the bind-users mailing list