On 10-Mar-00 at 01:01, Philip Hazel (ph10@???) wrote:
> On Thu, 9 Mar 2000 patl@??? wrote:
>
> > Is there any easy way to get the (reverse DNS) canonical hostname
> > associated with $interface_address ? It would make it much easier
> > for me to set up certain aspects of IP-based virtual domains.
>
> There is an item on the Wish List that might be relevant:
>
>
------------------------------------------------------------------------------
> (132) 01-Mar-2000 S Lookup host name from outgoing interface
> Vadim Vygonets <vadik@???>
>
> Instead of primary_hostname, look up the name for the interface that is
> being used for sending. Suggested patch supplied, but this should be an
> option of the smtp transport.
>
------------------------------------------------------------------------------
That would handle some of the things I want to do; but I also want
to be able to insert it into file paths; so a separate variable
would probably be more generally useful. (I'm assuming that if
there were an $interface_host variable, it would be possible to
use 'qualify_domain = $interface_host' and similar constructs to
effectively replace primary_hostname wherever desired.)
> If there is no easy built-in method at this time, I'd like to
> propose either:
>
> 1) Add an $interface_host variable that would be set to the
> reverse DNS lookup of $interface_address. (When that
> variable is valid.)
I'm on a rush job right now; but when it is over, I may try to
implement this myself (and submit patches). Is there an easy
way to tell if the variable is actually used in the config file
so that we could avoid the overhead of the DNS lookup if it
isn't used? Will the right place for the lookup be fairly obvious
when I start digging through the code. (Base that answer on the
assumption that I'm a fairly senior software engineer...)
Thanks,
-Pat