You cannot redirect to a path (e.g. /a/example.com ) using only DNS. CNAME DNS records can make mail.example.com/foo efficiently point to mail.google.com/foo , but for something more complicated, HTTP redirects will be required. This means that you need someone to host your webpage for this.
Unfortunately.
If your registrar offers the option "HTTP redirection", you can use it. Some registrars do this. If you use this, they efficiently run a minimal web server for you. Please note that this may violate SSL when users access your page through https://example.com .
Mail is delivered via MX records, which will not be affected by changes in other types of records (if you do not interfere with DNS records for domain mail servers).
Borealid
source share