Domain Wildcarding
Razvan Bruma
razvan at rartel.ro
Thu Mar 29 13:34:03 UTC 2001
In that case, and assuming that this is a totally bogus server,
used only for some internal purposes, you can set up your own "root" zone
and add a wildcard to it, something like:
zone "." { type master; file "something"; };
in your named.conf and in your "something" file put (after the soa
record):
NS ns.
ns A 1.2.3.4 ; your IP address
* A 1.2.3.4 ; or whatever IP you want
Regards,
Razvan
On Thu, 29 Mar 2001, Bob Steele wrote:
> Date: Thu, 29 Mar 2001 05:31:21 -0700
> From: Bob Steele <rsteele at 1stlink.net>
> To: razvan at ns.rartel.ro
> Cc: comp-protocols-dns-bind at moderators.isc.org
> Subject: Re: Domain Wildcarding
>
> Razvan, the purpose is to setup a bogus name server that will force inquiries
> onto a specific web page regardless of the domain that the user enters into his
> browser. I know it is possible to specify sub domains with a wild card inside
> the zone files. For example: "*." IN A 123.456.789.012 which will catch
> abc.example.com and xyz.example.com. But in this case it's desirable to treat
> example.com and xyz.org the same. This is not intended to be used for the
> general public, just a certain type of internal traffic.
> Bob Steele
> email: rsteele at 1stlink.net
>
>
> razvan at ns.rartel.ro wrote:
>
> > IMHO, you can't. And I don't know what you are trying to achieve
> > with that. What queries are to be answered from the "wildcard zone" ?
> > All queries not specifically directed to other zones? And so, your server
> > will be master for all the domains in the Internet and will serve all info
> > from one giant file...
> > I don't see the reason behind this, even if it WOULD be possible.
> > Regards,
> > Razvan
> >
> > Razvan Bruma
> > Unix System Administrator
> > email: razvan at rartel.ro
> >
> > On Wed, 28 Mar 2001, Bob Steele wrote:
> >
> > >
> > > Does anyone know how to specify a wildcard for domains such that if the
> > > server is asked for a domain other than what is specifically listed as a
> > > zone would get the wildcard zone returned. For example named.conf would
> > > contain:
> > >
> > > zone "1stlink.net" IN {
> > > type master;
> > > file "1stlink.net.hosts";
> > > };
> > > zone "*" in {
> > > type master;
> > > file "named.all.others";
> > > };
> > >
> > > whereas requests for 1stlink.net would resolve using the 1stlink.net.hosts
> > > file and any other domains would resolve using the named.all.others file.
> > > Any help or direction would greatly be appreciated.
> > > Bob Steele
> > > email: rsteele at 1stlink.net
> > >
> > >
> > >
> > >
>
>
Razvan Bruma
Unix System Administrator
email: razvan at rartel.ro
More information about the bind-users
mailing list