I've configured bind to catch all domains and return the same ip (A record) for them. This is for a domain parking service where there might be thousands of domains involved.
After pointing the nameservers for example.com to my nameservers, I correctly get shown the parked hosting page.
The only issue is that nameserver lookups aren't working.
If I dig NS example.com
I just get the SOA details back, instead of the NS names. Although dig example.com
does return the correct A record.
I've spent hours trying various things, would really appreciate help on this one.
The configuration for it:
named.conf.local
:
zone "." {
type master;
file "/etc/bind/zones/db.catchall";
};
db.catchall
:
$TTL 604800
@ IN SOA ns1.mynameserver.com. hostmaster.mynameserver.com. (
26 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS ip.addr.for.ns1
IN NS ip.addr.for.ns2
* IN A ip.addr.for.hosting