LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-10-2009, 12:00 AM   #1
zapo
LQ Newbie
 
Registered: Sep 2009
Location: Toronto
Distribution: Centos 5 / Fedora 14
Posts: 17

Rep: Reputation: 0
DNS alias


Hi
For year lookups to my webserver worked properly using

www IN CNAME pluto.mydomain.com.

I've been asked to 'modernize' it by allowing access without one having to enter the 'www' in their browser. So I added - (or tried to) add an alias as follows:


mydomain IN CNAME pluto.mydomain.com.
www IN CNAME pluto.mydomain.com.

I changed the serial number and stop/start named. This seemed to work, but only for some! It worked right away from home and from another location/DNS server. But access using 'mydomain.com' does not work from some others. It has been now 24 hrs since I restarted named with the new serial number.

I did not change the reverse zone nor restart it. Should I?
I this how an alias should be used to accomplish this?

Your help and advice will be greatly appreciated.

Zapo
 
Old 12-10-2009, 02:48 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
Blog Entries: 6

Rep: Reputation: 75
the best way is create "A record" to respond to the both www or-and w/o www
for me i stay away from cname
 
Old 12-10-2009, 11:27 AM   #3
zapo
LQ Newbie
 
Registered: Sep 2009
Location: Toronto
Distribution: Centos 5 / Fedora 14
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you for the quick reply. For the A record without the 'www' should I just put the domain name without the '.com'?
Zapo
 
Old 12-11-2009, 06:42 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
Blog Entries: 6

Rep: Reputation: 75
see my zone config sample "pri.noc.net.my"

http://unixman.noc.net.my/src/frame/contents_02_02.html
 
Old 12-11-2009, 06:51 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
@OP

Except from the dns part, you have also to create an alias for your web server, so it can respond to both http://www.domain.com and http://domain.com

Regards
 
Old 12-13-2010, 12:26 AM   #6
pasbanrule
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Nice work! Your post is an excellent example of why I keep coming back to read your excellent quality content that is forever updated.
 
  


Reply

Tags
alias, dns


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
Wildcard email alias in /etc/alias file custangro Linux - Enterprise 1 10-02-2009 01:17 PM
Want new domain to act as alias for current domain: email, dns, etc. cotton213 Linux - Server 3 07-01-2008 04:11 PM
Apache Alias Returns 404 or "Cannot find server or DNS Error" The00Dustin Linux - Software 3 02-14-2006 01:44 PM
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 01:40 AM
DNS alias for subdirectory McK66 Linux - Newbie 1 10-07-2003 12:45 PM


All times are GMT -5. The time now is 07:24 PM.

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