LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS http:domain.com resolve to www.domain.com (http://www.linuxquestions.org/questions/linux-networking-3/dns-http-domain-com-resolve-to-www-domain-com-527604/)

keysorsoze 02-11-2007 02:15 PM

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

~
~

acid_kewpie 02-11-2007 02:21 PM

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.

keysorsoze 02-11-2007 05:10 PM

Thanks for the reply. I'll look into the CNAME sugestion.

acid_kewpie 02-12-2007 03:03 AM

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 12:26 AM.