How to catch *all* subdomain queries, resolving with one ip?

Bill Manning bmanning at ISI.EDU
Thu Nov 8 16:14:34 UTC 2001


% 
% My host 'example.com' has only one ip (ie: 111.222.333.444).
% It runs an apache web server with several virtual hosts.
% 
% There's no real subdomains for example.com
% 
% So I want bind (v.9) to resolv every querie for 
% '*.example.com' with the 111.222.333.444 ip.
% A kind of 'cath all' directive.
% 
% For now, I add a new 'foo.example.com' IN entry in my zone
% file (and do a subsequent rndc reload) for each new 'foo'
% virtual host. It shouldn't be the right way ...
% 

*.example.com. in a 111.222.333.444

works a treat.

-- 
--bill


More information about the bind-users mailing list