LinuxQuestions.org
Help answer threads with 0 replies.
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-09-2009, 11:00 PM   #1
zapo
LQ Newbie
 
Registered: Sep 2009
Location: Toronto
Distribution: Centos 5 / Fedora 14/Debian/Slackware
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, 01:48 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
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, 10:27 AM   #3
zapo
LQ Newbie
 
Registered: Sep 2009
Location: Toronto
Distribution: Centos 5 / Fedora 14/Debian/Slackware
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, 05:42 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
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, 05:51 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:59 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
Open Source Consulting | Domain Registration