Trying to setup a dynamic MX response

Danny Mayer mayer at gis.net
Wed Jul 28 14:35:45 UTC 2004


At 07:24 PM 7/26/2004, Barry Margolin wrote:
>In article <ce3pir$2l4i$1 at sf1.isc.org>,
>  sarkasm at gmail.com (Steve Robillard) wrote:
>
> > I am looking to setup Bind to respond to MX request with a dynamic
> > answer based on the query.  It is important for me to get back a
> > response which contains the initial queried domain + a predefined
> > domain.
> >
> > The desired result on MX queries :
> >
> > Query    : a.foo.com
> >
> > Response : a.foo.com.bar.com

Specify the MX record to point to this node.

> >
> > Query    : b.foo.com
> >
> > Response : b.foo.com.bar.com
> >
> > Query    : *.foo.com
> >
> > Response : *.foo.com.bar.com
> >

You cannot return a wildcard response to any query except an AXFR/IXFR zone
transfer.

Danny

> >
> > Would anyone have a suggestion on how I could go about doing something
> > like this?  I am sure it would be possible to modify the BIND src to
> > do what, but I am hoping there is a simpler way to do this that I am
> > simply unfamiliar.
>
>I can't think of any built-in way to make this happen automatically.
>Perhaps the technique used to plug in a database access method would
>provide a simple way for you to plug in something like this.
>
>--
>Barry Margolin, barmar at alum.mit.edu
>Arlington, MA
>*** PLEASE post questions in newsgroups, not directly to me ***



More information about the bind-users mailing list