Redirect any Domains to my server

Asked

Viewed 771 times

2

I registered a domain on register.br and I have a server on the king host.

In my application, when the user creates an account, it is redirected to a page with your name in the Domain. Example:

  • Domain: example.com.br

  • User Joao register

  • The user is redirected to Joao.exemplo.com.br

But dns does not work for this subdomain.

My first idea was to create a CNAME with *.exemplo.com.br pointing to the server’s ip, but the br record does not accept wildcards in the dns configuration.

kinghost has a dashboard for managing domains. There I was able to add cname *.exemplo.com.br, but it didn’t resolve.

Does anyone know how to make it work?

  • To do this, I believe you will need to rent a server on which you can set up as DNS and register these subdomains there to do the name resolution. This involves several security issues, so a common host will obviously be caught. See if your host has any server that gives you this option.

1 answer

0

Instead of using Registry.br DNS, you have to point DNS to your hosting Nameservers, usually ns1.nomedohosting.net:

print do registro.br

And in your dashboard, e.g. cPanel, add the wildcard record:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.