3

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?

radius
  • 9,545
  • 23
  • 45
mmx
  • 482
  • 1
  • 8
  • 19

1 Answers1

5

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
Alnitak
  • 20,901
  • 3
  • 48
  • 81