2

I want to redirect domain A (without hosting space) to domain B (301), but when I try https://domainA.com or https://www.domainA.com it ends with ERR_CONNECTION_REFUSED. Is it even possible to use only DNS records?

I'm using OVH.com redirection panel and http:// redirect works fine.

pat o.
  • 1,919
  • 1
  • 16
  • 28

4 Answers4

3

Redirects cannot be done with DNS only.

However, some providers have HTTP redirect services that are configured via same interface as DNS. These support only HTTP. HTTPS support requires valid certificate for the domain.

Therefore if you want to have HTTPS redirects, you need to set up your own server for it.

Tero Kilkanen
  • 34,499
  • 3
  • 38
  • 58
1

Thats not possible on DNS Side,

But if you use CloudFlare DNS, you can configure the redirect via CF proxy [ https://support.cloudflare.com/hc/en-us/articles/200172286-Configuring-URL-forwarding-or-redirects-with-Cloudflare-Page-Rules ]

https://i.imgur.com/2QAHebu.png

https://i.imgur.com/E5NCenQ.png

*Just make sure the domain record use proxy feature.

YonzLeon
  • 168
  • 5
0

Another option is such as https://forwarddomain.net/ which (kindly) gives a free redirect service using only DNS records. An example below redirects from sub.example.com to othersite.com

sub.example.com.    IN  CNAME   r.forwarddomain.net
_.sub.example.com.  IN  TXT forward-domain=https://othersite.com/*
willnode
  • 126
  • 4
-2
  1. You can go to the DNS Management console (dnsmgmt.msc).
  2. Then go to the forward lookup zone.
  3. Create zone named domainA.com
  4. In the domainA.com zone create a record and name it as "www" then for the IP address of www.domainb.com websites.
  5. It should redirect the website without issue.
sysadmin1138
  • 131,083
  • 18
  • 173
  • 296
Annan
  • 1
  • 1