LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS alias (https://www.linuxquestions.org/questions/linux-networking-3/dns-alias-774628/)

zapo 12-09-2009 11:00 PM

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

routers 12-10-2009 01:48 AM

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

zapo 12-10-2009 10:27 AM

Thank you for the quick reply. For the A record without the 'www' should I just put the domain name without the '.com'?
Zapo

routers 12-11-2009 05:42 AM

see my zone config sample "pri.noc.net.my"

http://unixman.noc.net.my/src/frame/contents_02_02.html

bathory 12-11-2009 05:51 AM

@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

pasbanrule 12-12-2010 11:26 PM

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


All times are GMT -5. The time now is 06:44 PM.