AW: infinite subdomain names to one ip?

Peer Stefan stefan.peer at tiwag.at
Fri Aug 31 08:19:38 UTC 2001


have a look at wildcards (DNS & BIND, 4th edition, page 503)

*	IN	MX	10	mail-hub.movie.edu.
et	IN	MX	10	mail-hub.movie.edu.
...

you can add an entry like
*	IN	A	a.b.c.d.
and all queries will return the ip-address a.b.c.d.


regards,
Stefan


-----Ursprüngliche Nachricht-----
Von: htc1 at mindspring.com [mailto:htc1 at mindspring.com]
Gesendet: Freitag, 31. August 2001 07:49
An: comp-protocols-dns-bind at moderators.isc.org
Betreff: infinite subdomain names to one ip?


I've looked for this one extensively; apologies if it's been covered
in some obvious place...or if it's just obvious.

I'd like to know how to set up DNS such that any name of the form
x.y.z.mydomain.net (or x.mydomain.net or x.y.mydomain.net, etc.) gets
resolved to the single IP address corresponding to mydomain.net. Thus
a remote user could type "http://wxjdg.mydomain.net" and it would get
to my server even though "wxjdg" is just garbage. Note that multiple
records will not suffice, since I want ANY subdomain to map to the IP
address of the parent (I know it can be done, but I don't know how).

If it's not too much to ask, is it also possible to do this using
static name resolution (a hosts file)?

Thanks in advance,
Curly
htc1 at mindspring.com


More information about the bind-users mailing list