LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-11-2007, 03:15 PM   #1
keysorsoze
Member
 
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295

Rep: Reputation: 30
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

~
~
 
Old 02-11-2007, 03:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 02-11-2007, 06:10 PM   #3
keysorsoze
Member
 
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295

Original Poster
Rep: Reputation: 30
Thanks for the reply. I'll look into the CNAME sugestion.
 
Old 02-12-2007, 04:03 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
wel actually i think that www would typically be a CNAME to domain.com not the other way round.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 07:57 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Networking 6 08-28-2005 04:35 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Newbie 6 08-28-2005 04:29 PM
DNS will not resolve non-domain qualified names arobinson74 Linux - Networking 2 10-25-2004 05:13 PM
FC2 DNS domain resolve problem flump Linux - Networking 2 08-14-2004 03:35 PM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration