Eric Cunningham on Thu, 26 Apr 2001 11:27:17 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] DNS CNAME issues


Hi all,

I set up a primary nameserver for my domain and am having trouble
getting the CNAME aliases to work.  I'd like www.beccel.com to point to
ns2.beccel.com but for some reason, it doesn't.

My nameserver is running Debian linux with Bind version 8.2.2p5.  

In my /etc/bind/named.conf file, I tried the following but nothing
worked:

zone "beccel.com" in {
        type master;
        file "/etc/bind/db.beccel";
        };
 
zone "216.158.41.in-addr.arpa" in {
        type master;
        file "/etc/bind/db.216.158.41";
        };
             

So I switched to this which appears to work for the legit hostnames mail
and ns2:

zone "db.216.158.41" {
        type master;
        file "/etc/bind/db.beccel";
};
                                                        

My db.beccel file is:

beccel.com. IN SOA mail.beccel.com.  eric.mail.beccel.com (
                        20010418; Serial
                        10800   ; Refresh after 3 hours
                        3600    ; Retry after 1 hour
                        604800  ; Expire after 1 week
                        86400 ) ; Minimum TTL of 1 day
 

;
; Name Servers
;
 
beccel.com.             IN NS   mail.beccel.com.
beccel.com.             IN NS   ns2.beccel.com.
 
;
; Mail routing
;
 
                        IN MX   10 mail.beccel.com.
 
;
; Addresses for the canonical names
;
 
localhost.beccel.com    IN A    127.0.0.1
mail.beccel.com         IN A    216.158.41.227
ns2.beccel.com          IN A    216.158.41.228
 
;
; Aliases - the part that doesn't work...
;
 
www.beccel.com.         IN CNAME ns2.beccel.com.
smtp.beccel.com.        IN CNAME mail.beccel.com.
ns1.beccel.com.         IN CNAME mail.beccel.com.
nexus.beccel.com.       IN CNAME ns2.beccel.com.              

*******************************************************

And my db.216.158.41 file:

216.158.41.in-addr.arpa. IN SOA mail.beccel.com.  eric.mail.beccel.com (
                        20010418; Serial
                        10800   ; Refresh after 3 hours
                        3600    ; Retry after 1 hour
                        604800  ; Expire after 1 week
                        86400 ) ; Minimum TTL of 1 day
 
;
; Name servers
;
 
beccel.com. IN  NS      mail.beccel.com.
beccel.com. IN  NS      ns2.beccel.com.
 
;
; Addresses point to canonical name
;
 
227.216.158.45.in-addr.arpa.    IN PTR  mail.beccel.com.
228.216.158.45.in-addr.arpa.    IN PTR  ns2.beccel.com.                 


Thanks for any input.

-eric



______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug