3 ms·
How is a wildcard subdomain configured?
by eric59 12y ago
How is a wildcard subdomain configured?
- MrSourz 12y agoA simple DNS configuration would be: An A record * .domain.com -> IP address and in Nginx on the server with that IP address server { listen 80; server_name domain.com *.domain.com;
- datenwolf 12y agoHave the glue record for a/your domain (e.g. c.uk) point to your own nameserver. Configure the nameserver to respond to any request for an A or AAAA record under that domain with the target IP address. Make the HTTP server listening on that IP address answer regardless of the Host header.
- TheDong 12y agoIt depends on your DNS provider as to if they support it or not. Often, they will not and you'll simply have to run your own dns nameserver (bind) with a wildcard config, such as http://community.aegirproject.org/dnswildcard http://community.aegirproject.org/dnswildcard ... Googling around will find you many bind configurations and discussions of this feature.
- nav1 12y agoSomething along lines of * IN A <ip_address>