I'm trying to create DNS for wildcard subdomains that run on localhost.
It's not working. The main domain is fine but the sub domains are pointing to an external server instead.
Here's what I have:
In /etc/named.conf:
zone "typeflex" IN {
type master;
file "/var/named/typeflex.zone";
allow-update { none; };
};
In /var/named/typeflex.zone:
$TTL 86400;
@ IN SOA typeflex.com. hostmaster.typeflex.com. (
20170101 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ; minimum
)
IN NS typeflex.com.
IN A 127.0.0.1
@ IN A 127.0.0.1
* IN A 127.0.0.1
*.typeflex.com. IN A 127.0.0.1
www IN CNAME typeflex.com.