On 12.04.18 16:11, Andrew Hardy wrote:
Does bind support wildcard prefix

I want to install bind DNS server on my LAN to locally test a web
application that is designed to support receiving requests on different url
domain prefixes.

Map *.mydomain.com to
For example 192.168.12.12

*.mydomain.com. IN      A       192.168.12.12

Use
abc.mydomain.com
def.mydomain.com
www.mydomain.com
etc

All arrive at http server on 192.168.12.12

bind does not care about HTTP. BIND will point A records to your IP but
that's all.

Note that wildcard DNS has caveats, e.g. it only applies to otherwise
non-existent records, not to any existent, so if you e.g. define

abc.mydomain.com        MX      ...
www.def.mydomain.com    A       ...

then the *.mydomain.com will NOT apply to abc.mydomain.com
some more info at https://en.wikipedia.org/wiki/Wildcard_DNS_record

This is my primary need so I don't want to install if this is not my best
option.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
42.7 percent of all statistics are made up on the spot. _______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to