Re: DNS and CNAME

From: Damien Hull <dhull@digitaloverload.net>
Date: Wed Nov 01 2006 - 17:50:55 AKST

It works when asking my DNS server.

dhull@dhull-desktop:~$ dig testing-linux.com axfr

; <<>> DiG 9.3.2 <<>> testing-linux.com axfr
;; global options: printcmd
testing-linux.com. 86400 IN SOA ns1.
dhull.testing-linux.com. 2006102001 10800 900 604800 3600
testing-linux.com. 86400 IN MX 10 mail.testing-linux.com.
testing-linux.com. 86400 IN NS ns1.testing-linux.com.
testing-linux.com. 86400 IN NS ns2.testing-linux.com.
testing-linux.com. 86400 IN A 69.178.7.134
mail.testing-linux.com. 86400 IN CNAME testing-linux.com.
ns1.testing-linux.com. 86400 IN CNAME testing-linux.com.
ns2.testing-linux.com. 86400 IN CNAME testing-linux.com.
www.testing-linux.com. 86400 IN CNAME testing-linux.com.
testing-linux.com. 86400 IN SOA ns1.
dhull.testing-linux.com. 2006102001 10800 900 604800 3600
;; Query time: 30 msec
;; SERVER: 192.168.2.2#53(192.168.2.2)
;; WHEN: Wed Nov 1 17:47:46 2006
;; XFR size: 10 records (messages 1)

It doesn't work when asking another server. It has something to do with
the "r" option. Is there an option that just shows the CNAME?

Royce Williams wrote:
> Damien Hull wrote, on 11/1/2006 11:27 AM:
>
>> Can someone tell me if the "CNAME" record in DNS is still used?
>>
>
> Definitely. :)
>
>
>> I've got CNAME entries in BIND so I know they work. The trouble I'm
>> having is that when I do a "dig" on the domain I don't see them. It only
>> shows "A" records. Either I'm doing something wrong with "dig" or I'll
>> have to switch everything to an "A" record. I want to see all my DNS
>> records when I run "dig".
>>
>
> What's the actual query you're using? If you're asking a full zone
> transfer (dig @myservername example.net axfr), you'll get the whole
> enchilada. If you only ask for your domain (dig example.net any),
> you'll only get the stuff associated directly with your domain name
> itself (MXes, NS records, and any A or CNAME tied to the domain
> itself, but no "child" hosts within the domain).
>
> ... I think. :)
>
> Royce
>
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Nov 1 17:50:53 2006

This archive was generated by hypermail 2.1.8 : Wed Nov 01 2006 - 17:50:53 AKST