[asterisk-dev] [Code Review] Add getnameinfo() to ast_sockaddr_resolve ()

Andrew Latham lathama at gmail.com
Wed May 4 08:34:19 CDT 2011


On Wed, May 4, 2011 at 9:29 AM, Simon Perreault
<simon.perreault at viagenie.ca> wrote:
> On 2011-05-04 09:20, Andrew Latham wrote:
>> An IP address could be used as a internal domain name
>> (very unlikley).
>
> It's allowed in the DNS. But it's not allowed by SIP's grammar.
>
> Might also be informative: getaddrinfo() always starts by trying to
> parse the string as an IP address before trying to resolve it as a host
> name.
>
> Simon
> --
> DTN made easy, lean, and smart --> http://postellation.viagenie.ca
> NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
> STUN/TURN server               --> http://numb.viagenie.ca

Thanks Simon...

I once consulted in an environment where numbering was used in DNS as
an upper management decision.

-- 
~~~ Andrew "lathama" Latham lathama at gmail.com ~~~



More information about the asterisk-dev mailing list