I created a simple static web site and have two separately registered domains a.com and b.net. I want a.com to be the primary domain name and all requests coming in to b.net to be routed to a.com. How do I configure my DNS server to do this? I was assuming all I needed was a CNAME record as below, but this is not working. Here's how I setup my DNS zone file. (Note: all requests to a.com work fine)
; a.com [154997]
$TTL 86400
@ IN SOA ds1.dnsserver.com. fname.lname.mail.com. (
2011020245
14400
14400
1209600
86400
)
@ NS ds1.dnsserver.com.
@ NS ds2.dnsserver.com.
@ NS ds3.dnsserver.com.
@ NS ds4.dnsserver.com.
@ NS ds5.dnsserver.com.
@ MX 10 mail.a.com.
@ A 192.168.1.38
mail A 192.168.1.38
www A 192.168.1.38
b.net CNAME a.com.
www.b.net CNAME a.com.