BIND question

Kevin Darcy kcd at daimlerchrysler.com
Mon Jun 21 21:37:21 UTC 2004


Alexander Schmidt wrote:

>Hi,
>
>I have a server machine, but no own nameserver (at least that is what I
>think) ;-)
>Currently I use virtual domains with Apache 1.3.6.
>So, when a user enters www.mydomain.tld this is resolved by Apache to some
>directory.
>But currently mydomain.tld is not resolved.
>
You can make mydomain.tld resolve simply by adding an A record with the 
name mydomain.tld.

>One option would be to make an additional entry in httpd.conf, which is
>annoying to do for every Domain.
>The second option would be configure my DNS to have *.mydomain.tld (* =
>jolly for
>everything) pointing to the same IP.
>At least that is what someone said...
>
Yes, you could add a *.mydomain.tld wildcard A record. But I think you 
still have to configure each name into httpd.conf regardless. Also, be 
careful about wildcards. Sometimes they behave in unexpected ways, and 
can interfere with things like email if not handled properly.

>The second thing is that I want everything starting with webmail.*, so
>webmail.mydomain.tld or webmail.anotherdomain.tld to be directed to some
>specific directory where squirrelmail lies.
>I guess this is possible, too.
>
You can't wildcard "everything that begins with the label 'webmail'" in 
DNS, but if you can arrange for webmail.mydomain.tld, 
webmail.anotherdomain.tld and all of the other "webmail" names to point 
to the same webserver instance, then I think you can configure Apache to 
"wildcard" the vhost names. That's off-topic for this list though...

                                                                         
                                                      - Kevin




More information about the bind-users mailing list