how do i redirect unknown subdomains?
Will Hargrave
will at harg.net
Tue Mar 20 22:53:42 UTC 2001
On 20 Mar 2001, bryan kruel wrote:
> please forgive me if this has been asked before. i searched for this
> before i sent this email, but i have yet to find an answer. say i have
> domain foo.com. foo.com exists, and is a returning http content.
>
> now, suppose a user enters bar.foo.com. since there is no ip
> associated with that name, i want the user redirected to foo.com.
> can that be done? and if so, how?
You need a wildcard A record, so thus:
*.foo.com. IN A 192.0.2.1
This shouldn't affect other hosts you may have, say, wibble.foo.com should
resolve properly despite the wildcard.
--
Will Hargrave <will at harg.net>
More information about the bind-users
mailing list