Q: Is it possible to configure BIND to redirect "anything.domain.com" to

"domain.com/anything"?
This commit is contained in:
Mark Andrews 2007-06-29 02:26:20 +00:00
parent 6b12e2e17c
commit fec88e4410
2 changed files with 38 additions and 1 deletions

13
FAQ
View file

@ -719,3 +719,16 @@ A: Short Answer: No.
private network? Are you on a NAT'd network? The answers to all these questions
change how you configure even a caching name server.
Q: Is it possible to configure BIND to redirect "anything.domain.com" to
"domain.com/anything"?
A: No. This mapping needs to be done in the HTTP server using the "Host:
anything.domain.com" header from HTTP 1.1. See your HTTP server documentation
for how to do this.
You can however use wildcard records to map all the hostnames to the same
addresses. e.g.
* A 192.0.2.10
* AAAA 2001:DB8:0:0:8:800:200C:417A

26
FAQ.xml
View file

@ -18,7 +18,7 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: FAQ.xml,v 1.19 2007/06/18 23:47:16 tbox Exp $ -->
<!-- $Id: FAQ.xml,v 1.20 2007/06/29 02:26:20 marka Exp $ -->
<article class="faq">
<title>Frequently Asked Questions about BIND 9</title>
@ -1353,5 +1353,29 @@ zone "list.dsbl.org" {
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
Is it possible to configure BIND to redirect
<quote>anything.domain.com</quote> to
<quote>domain.com/anything</quote>?
</para>
</question>
<answer>
<para>
No. This mapping needs to be done in the HTTP server using the
<quote>Host: anything.domain.com</quote> header from HTTP 1.1.
See your HTTP server documentation for how to do this.
</para>
<para>
You can however use wildcard records to map all the hostnames
to the same addresses. e.g.
<programlisting>* A 192.0.2.10
* AAAA 2001:DB8:0:0:8:800:200C:417A</programlisting>
</para>
</answer>
</qandaentry>
</qandaset>
</article>