Redirect from dns to http

Out of the box, DNS servers can't redirect a domain to a url with a path.
You can use dns302.dev to do that without setting up and running a webserver.

How?

Edit your DNS zone

  1. Set a A for your domain to 206.51.242.221
  2. Add a TXT record for dns302.yourdomain to the URL you want to redirect to

Hostname Type Value
www.dns302.dev A 206.51.242.221
dns302.www.dns302.dev TXT http://the.domain.com/with-path/to/redirect-to