Question : FREEBSD BIND/NAMED/DNS CATCH-ALL QUESTION

I was wondering if it's possible to configure BIND/Named/DNS on FreeBSD to resolve any domain that's pointed to the name server(s) configured on the server.

I have 2 NameServers for my server:

NS1.DOMAIN.COM
NS2.DOMAIN.COM

And I have 10 domains that all point to the name servers above. Instead of making a master record for each domain inside my configuration file, /etc/namedb/named.conf, is it possible to just do something like this:

zone "*" IN { type master; file "records/catch-all-record"; };
* = Catch All

And of course the catch-all-record file would contain the proper values and any domain pointed to the name server(s) above would resolve to the IP listed in the "catch-all-record" file.

I have tried several different things to get this to work with no success. I am running the latest version of FreeBSD.

Answer : FREEBSD BIND/NAMED/DNS CATCH-ALL QUESTION

named.conf just lists the zone files for it to load, you can't put an asterisk in named.conf since the name daemon would then look for a file called '*' which is not a good file name.

You can call the zone files anything you like within reason, it's a good convention to call each of them by the same name as the domain they serve but there is nothing to stop you having a zone file called fred.com.dns with contents that list records for the barney.co.uk domain.

In this case just call the file star.wildcard and list it as that in named.conf.


I looked for an example on google to show you but found http://www.zytrax.com/books/dns_bind/dns_ch_6.htm#name_conv on the first page, they have no MX record in their example but imply one with a server called smtp which has a CNAME pointing to it, wonder if they get any mail???
<\JOKE>
Random Solutions  
 
programming4us programming4us