1

After having bought a domain (example.tld) without webspace, I want to let this point to my other domain called (myhomepage.somefreehoster.com).

I know this will work using DNS CNAME record and when someone looks for example.tld, the resulting IP will be this of myhomepage.somefreehoster.com.

However, how do I let this pass for emails sent via domain @example.tld (like [email protected])? I do not want to send my mail through myhomepage.somefreehoster.com.

If this is not possible the way I am trying to do, let me please know some clever alternatives. Still, preferably, I would like to use a DNS redirect.

2
  • for email you set different type of DNS record (MX), so it can differ from main DNS records.
    – ek9
    Mar 22, 2014 at 22:08
  • 1
    finally, I found out the domain provider only allows A records (I guess CNAME is for subdomains only), so everything is working now correctly; just had to adapt the .htaccess file; domains has to be told to hosting site too
    – user37181
    Mar 25, 2014 at 16:16

1 Answer 1

1

When a mail server wants to deliver mail to @domain.tld, it makes a DNS lookup for the MX record for that particular domain. It will connect to the server returned by the lookup with SMTP, and send the e-mail.

So, you should add the MX record for your @domain.tld domain, and enter the name of the server that handles the e-mail for that domain.

2
  • I try to let emails pass through using '@domain.tld' without changing anything because this is already working fine.
    – user37181
    Mar 22, 2014 at 22:23
  • CNAME has nothing to do with E-Mails. So, if your E-Mails for @domain.tld work fine already, you can simply add the CNAME. Mar 22, 2014 at 22:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.