Re:Is it an accident? No, it's a wildcard subdomain
by eric59 on Sunday April 12, 2015 @06:23PM
(#9364954)
How is a wildcard subdomain configured?
[ Parent
| on HN ]
Re:Is it an accident? No, it's a wildcard subdomain
by nav1 on Sunday April 12, 2015 @06:30PM
(#9364978)
Something along lines of
* IN A <ip_address>
Re:Is it an accident? No, it's a wildcard subdomain
by MrSourz on Sunday April 12, 2015 @06:27PM
(#9364963)
A 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;
Re:Is it an accident? No, it's a wildcard subdomain
by TheDong on Sunday April 12, 2015 @06:30PM
(#9364977)
It 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 ... Googling around will find you many bind configurations and discussions of this feature.
Re:Is it an accident? No, it's a wildcard subdomain
by datenwolf on Sunday April 12, 2015 @06:29PM
(#9364969)
Have 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.