Web Hosting Talk







View Full Version : Help me with my DNS problems?


mattan
10-08-2000, 11:00 PM
Hi

Can any DNS gurus out there help me with this problem?

Lets say I have an IP xxx.xxx.xxx.xxx. In addition to having http://domain.com, I would also like to have the other subdomains like "www" and "ftp" also resolve to same IP.

Should I be using CNAME or A records


Thanks in advance

-- my sample dns zone
@ 43200 IN NS ns1.centralinfo.net.
@ 43200 IN NS ns2.centralinfo.net.
@ 43200 A xxx.xxx.xxx.xxx
www 43200 CNAME xxx.xxx.xxx.xxx
ftp 43200 CNAME xxx.xxx.xxx.xxx

Jag
10-09-2000, 12:06 AM
Well if you want the subdomain to have it own content then you need to set it up as another domain all its own. So it will have its own DNS and entry in httpd.conf .Then you need to add NameVirtualHost xxx.xxx.xxx.xxx to httpd.conf and then you can have all the subs generate their own content and reflect the same IP. Or if you want the subs to just reflect the main site you would just a an A record, or a better idea may be to add wildcards : * in A that way all subs goto the main site and you can use some of the scripts out there to redirect the subs you want to have their own content.

mattan
10-09-2000, 12:37 AM
I think my mistake was in the CNAME. it should have been an "A" name because I resolving a host to an IP.

Mike
10-09-2000, 12:55 AM
Yes, you'd use "A" instead of "CNAME"

ie:

sub IN A xxx.xxx.xxx.xxx