< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] DnsUtils improvement


On 5/4/05, Nils Ohlmeier <lists@xxxxxxxxxxxx> wrote:
> Hi there,
> 
> from ym own experiences with sipsak http://sipsak.org I would  conclude that
> the current implementation of DnsUtils::getLocalHostName will fail on many
> *nix systems. Unfortunately the result of gethostname() hardly depends on the
> configuration of the system.
> The idea of the attached improvement is taken from the hostname binary
> (net-tools 1.60).
> 
I'll check in this patch.

> Secondly IMHO the function getLocalDomainName is also more or less broken,
> because on many systems getdomainname returns the NIS domain (which can be
> any given string) if it returns anything at all. Should I provide a similar
> fix for that, although it is currently not used anywhere?
>
Sure. sounds good. 
 
> At last a question: what is the reason that a DNS name is used in the
> Record-Route headers of repro instead of the IP address like in the Via?
> Besides for high availability scenarios I can not find any good argument for
> inserting this extra DNS lookup step.
> 

A DNS name is used here since subsequent requests in dialog should not
need to rely on the original proxy still being available. We're
willing to make that assumption within a single transaction, but not
over the entire duration of the call.