-1

I have registered a new domain, let's call it particulartweet.com.

I would like users who enter that domain in their browser to land on a particular Twitter URL, like https://twitter.com/wgervais/status/1260723066847391747.

Can I do this just with DNS record settings? Or do I need to set up a simple web server to do the redirect for me?

I have full control over the DNS settings - but would prefer not to have to set up a server. Keep things as simple as possible.

I searched other SO answers, but couldn't figure out whether this was possible or not.

6
  • 1
    Does this answer your question? DNS - Redirect from old server to new Sep 29 at 12:44
  • No @GeraldSchneider, I'm aware of that question and it doesn't answer mine. The use case is different, and the solutions offered there are thus different. This is not a good answer to this question: You can use a 301 redirect on your old server to point at your new one. There's no way to do this in DNS, but it will ensure that all traffic reaches the intended destination while your old records are still cached elsewhere. Sep 29 at 14:36
  • That's exactly the answer to your question. It's not possible to do this with DNS only. Sep 29 at 14:40
  • 2
    "I'd appreciate a clear answer suited to this question." NO you can't do what you describe just with the DNS, which maps names (not URLs) to IP addresses here. You need the DNS to point the hostname to a webserver and then you need to configure that webserver to reply for this hostname and do a proxy or redirect to the real URL. Sep 29 at 18:43
  • 2
    "Can I for example point it at Twitter name servers?". NO. Twitter (or anyone else) nameservers are irrelevant here. Sep 29 at 18:43
1

Answer created from @Patrick-Mevzek's helpful comments:

NO you can't do what you describe just with the DNS, which maps names (not URLs) to IP addresses here. You need the DNS to point the hostname to a webserver and then you need to configure that webserver to reply for this hostname and do a proxy or redirect to the real URL.

"Can I for example point it at Twitter name servers?".

NO. Twitter (or anyone else) nameservers are irrelevant here.

Not the answer you're looking for? Browse other questions tagged or ask your own question.