Score:1

How can I redirect domain A to domain B without hosting, using only DNS records?

cn flag

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.

Score:2
us flag

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.

pat o. avatar
aw flag
There are also third party redirect services which support HTTPS.
cn flag
Ok, then I will point to another server with hosting space. Then I will create valid cert for domainA and set up force redirect for https and after that to domainB. @pato. I have heard about cloudflare.com
Score:1
de flag

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.

Score:0
us flag

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/*
NGix avatar
sk flag
Amazing solution! Please keep it going!.
Score:-2
br flag
  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.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.