Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to configure a BIND DNS server (since Windows Web Server 2008 does not have DNS service, I had to install BIND) that responds any request with a single A record. I had set up a * record but it seems to work just for direct subdomains of the server. I mean subdomain.xyz.com will be responded correctly, but subdomain2.subdomain1.xyz.com is not. I might have screwed up the config files as have just worked with MS DNS before.

Can you tell me how to configure BIND from the beginning to resolve every requested address with a constant IP address?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Try this:

In named.conf:

options {
    recursion yes;
}

zone "." IN {
    type master;
    file "named.root";
};

In "named.root":

$ORIGIN .
$TTL 1D
@    IN     SOA  @ none. ( 0 1D 1H 1W 3H );
     IN     NS   @
*    IN     A    a.b.c.d
share|improve this answer
    
Without any SOA record? –  LeakyCode May 1 '09 at 9:59
    
full (and tested) info now included... –  Alnitak May 1 '09 at 10:03
    
(I wasn't sure until I tested it how little information I could get away with supplying to Bind) –  Alnitak May 1 '09 at 10:04
    
Thanks, works now ;) –  LeakyCode May 1 '09 at 10:14
    
sorry to bring up this old thread. but i just test this and seems it did not work. any updated info? especially for debian lenny. should i just ask new question? tnx –  DennyHalim.com Nov 16 '09 at 7:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.