Redirect any subdomain to my server

1

I registered a domain in the registro.br and I have a server in the king host.

In my application, when you create an account, it is redirected to a page with your name in the subdomain. Example:

  • Domain: example.com

  • User joao subscribe

  • The user is redirected to joao.example.com.br

But dns does not work for this subdomain.

My first idea was to create a CNAME with * .example.com pointing pro ip from the server, but the br register does not accept wildcards in the dns configuration.

Kinghost has a panel for domain management. There I was able to add the cname * .example.com, but it did not solve.

Does anyone know how I can make this work?

    
asked by anonymous 15.12.2016 / 12:11

0 answers