为大量域设置通配符DNS

我想要一个名称服务器,指出在同一个IP的任何名称。 这样,我可以快速地将一堆域名服务器更改为ns1.ABC.com和ns2.ABC.com,并将所有这些域指向相同的IP(然后由wordpress多用户pipe理)。

有关如何做到这一点的任何想法 – 无论是支持这个外包的DNS提供商,或者我会怎么做绑定

谢谢!

例如,BIND应该能够通过“欺骗”它来认为它是更高级别区域的授权,例如com

 zone "com" { type master; file "/etc/bind/files/catch_all.db"; }; 

然后,在你的catch_all.db文件中:

 $TTL 300 @ IN SOA ns1.domain.example. hostmaster.domain.example. ( 2012020301 ; serial 6H ; refresh 1H ; retry 2W ; expire 6H ; minimum ) IN NS ns1.domain.example. IN NS ns2.domain.example. * IN MX 10 mail.domain.example. mail IN A 10.0.0.2 ; Your mail server's IP. * A 10.0.0.1 ; The IP you want all domains to resolve to. 

这将适用于任何请求com域中的一个域命中您的服务器。 您也可以对其他顶级区域执行相同的操作:

 zone "net" { type master; file "/etc/bind/files/catch_all.db"; }; zone "org" { type master; file "/etc/bind/files/catch_all.db"; }; zone "co.uk" { type master; file "/etc/bind/files/catch_all.db"; };