How do I redirect www to non-www in Route53?

Posted by fredley on Server Fault See other posts from Server Fault or by fredley
Published on 2012-12-04T16:25:59Z Indexed on 2012/12/04 17:08 UTC
Read the original article Hit count: 194

Filed under:
|
|

I host my site at domain.com.

My DNS entries in Route53 are as follows:

domain.com      A       xxx.xxx.xxx.xxx      300
domain.com      NS      stuff.awsdns-47.org  172800
domain.com      SOA     stuff.awsdns-47.org  900

I would like to redirect traffic from www.domain.com to domain.com, as currently this just returns a 404. This question on SO suggested a PTR record, and I added that:

www.domain.com  PTR     domain.com           300

but it didn't work. What should I be doing?

© Server Fault or respective owner

Related posts about dns

Related posts about redirect