DNS http:domain.com resolve to www.domain.com
Hi!, I am currently running bind, and I had a question in regards to getting a URL to resolve to http://www.domain.com rather than just http://domain.com. I can reach http://www.domain.com I just want for users to reach http://www.domain.com when the enter http://domain.com. I am rather new to DNS and am wondering how this is done. Here is my zone file for domain.com
@ IN SOA domain.com. hostmaster.domain.com. (
2006031801 ; Serial
3600 ; Refresh
900 ; Retry
2592000 ; Expire
1800 ) ; Minimum
IN NS NS01.domain.COM.
IN NS NS02.domain.COM.
IN NS NS03.domain.COM.
IN A 66.x.x.x
; IN A 66.x.x.x
IN MX 10 mailgw.domain.com.
; * IN MX 10 domainmailgw.domain.com.
; IN MX 20 domainmailgwbk.domain.com.
localhost IN A 127.0.0.1
www IN A 66.x.x.x
dev IN A 66.x.x.x
you can provide an fqdn by putting a . at the end of the name, e.g. "www.domain.com." or for what you want... "domain.com." so add an A record or a CNAME to www if you wish.
Thanks for the reply. I'll look into the CNAME sugestion.
wel actually i think that www would typically be a CNAME to domain.com not the other way round.
|All times are GMT -5. The time now is 03:42 AM.|