K 10
svn:author
V 6
iulius
K 8
svn:date
V 27
2018-12-02T14:05:50.276396Z
K 7
svn:log
V 543
Rewrite GetFQDN and rename to inn_getfqdn

Use getaddrinfo with AI_CANONNAME instead of the tedious code to
find an FQDN in gethostbyname results. Return a newly-allocated
string instead of using a static buffer, since this function isn't
performance-critical, avoiding buffer management complexity. Adjust
call sites to do proper memory allocation handling of the return
value.

Remove some old disabled code to try to force canonicalization by
adding a period to the end of the DNS query.

Patch from Russ Allbery (backported from CURRENT).

END
