Global wildcard

Danny Mayer mayer at gis.net
Sun Jun 30 03:19:19 UTC 2002


Just create your own com domain and then add records like:

*.com.          IN      MX 10 smtpserver.com.
smtpserver.com. IN      A       10.10.10.10

Throw in the SOA and NS records and thew A record for the server
and put that in your named.conf as the master for the com zone.
You don't need the real com domain so this will do. I would actually
suggest you use a test. zone instead of the com. zone since there
is no possibility of it being mistaken for anything else.

Danny

At 05:38 PM 6/28/02, Warrick FitzGerald wrote:

>Thanks Martin,
>
>What i'm trying to avoid though is having to create an entry in the
>named.conf file for every domain, I would like to setup a domain . or *
>
>Thanks
>Warrick
>
>
>----- Original Message -----
>From: <Martin.Machacek at Terabeam.com>
>To: <wfitzgerald at livetechnology.com>
>Cc: <comp-protocols-dns-bind at isc.org>
>Sent: Friday, June 28, 2002 2:45 PM
>Subject: Re: Global wildcard
>
>
> >
> > On Fri, Jun 28, 2002 at 02:10:22PM -0400, Warrick FitzGerald wrote:
> > >
> > > Hi All,
> > >
> > > I am trying to use bind in a benchmarking lab to resolve all queries to
>one
> > > address. Essentially I am trying to benchmark two mail servers by
>sending
> > > 400,000 emails to 400,000 unique email addresses. So I really want to be
> > > able to send an email to 1 at 1.com and 2 at 2.com and 3 at 3.com and have all
>the
> > > domains resolve to the same MX recored. So in essence  I would like BIND
>use
> > > only one zone file. Can anyone tell me if this is possible, and if so
>how I
> > > go about doing this ?
> >
> > It is very simple. Create your zone file. It may look for example like
>this:
> >
> > $TTL 3600
> >
> > @ IN SOA ns root.ns  (
> > 2002040801 ; Serial
> > 3600 ; Refresh
> > 900 ; Retry
> > 3600000 ; Expire
> > 3600 ) ; Minimum
> > IN NS ns
> > IN MX 10 mx
> >
> > ns IN A 1.1.1.1
> > mx IN A 2.2.2.2
> >
> > (where 1.1.1.1 is address of your nameserver and 2.2.2.2 is address of the
>MTA)
> >
> > ... and reference it multiple times in your config file for all domains
>you want
> > to share the data - like this:
> >
> > zone "1.com" {
> > type master;
> > file "myzone";
> > };
> >
> > zone "2.com" {
> > type master;
> > file "myzone";
> > };
> >
> > zone "3.com" {
> > type master;
> > file "myzone";
> > };
> >
> > ...
> >
> >
> > Martin
> > --
> > [phone: (206) 357-1220]
> > [cell : (206) 571-2814]
> >
> >
> >



More information about the bind-users mailing list