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

Simon Perreault simon.perreault at viagenie.ca
Wed May 4 08:29:04 CDT 2011


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



More information about the asterisk-dev mailing list