Forward everything from misspelled domain (DNS)

1

I have two domains:

  1. example.com
  2. exampel.com (wrongly spelled version of 1)

Now, I want to 'forward' everything from domain 2 to domain 1, so for example:

  • www.exampel.com --> www.example.com (for every subdomain)
  • info@exampel.com --> info@example.com (for all email addresses).

I understand that I can configure it all manually (per subdomain, per email address), but is there not a way to basically map domain 2 to domain 1 completely?

Thanks!

Erik

Posted 2014-07-13T19:01:03.323

Reputation: 113

@Logman Literally the first sentence in the post is "I have two domains" – Devon Parsons – 2014-07-13T19:13:12.687

lol sorry :) watching movie and board not good – Logman – 2014-07-13T19:13:56.553

Just to clarify you are talking about confiuring a DNS's ZONE configuration. Not forwarding on a client computer or a non authoritative DNS server, correct? – Scott Chamberlain – 2014-07-13T19:27:53.157

What are you using for your DNS server for your domains? If you were running your own DNS servers and using bind, then it would certainly be possible to create a single zone file such that all the records are relative. Then simply setup the server to use the same file for both domains. – Zoredache – 2014-07-14T02:21:16.743

I use a hosted solution for DNS (transip). I would switch if there is a better alternative though. I'm indeed talking about a DNS zone config. – Erik – 2014-07-14T09:13:54.217

Answers

2

You can use a DNAME record to do this, which on a modern version of DNS software that supports EDNS0 (e.g., BIND9) will do what you want and behave much better than a wildcard CNAME, but still synthesize appropriate CNAMEs on the fly for backwards compatibility with non-EDNS0-aware DNS servers. See RFC 6672 and RFC 2672.

milli

Posted 2014-07-13T19:01:03.323

Reputation: 1 682