[Nagiosplug-devel] Antwort: RFC: gethostbyname instead of getaddrinfo

Sascha.Runschke at gfkl.com Sascha.Runschke at gfkl.com
Tue Feb 10 16:25:11 CET 2009


Ton Voon <ton.voon at opsera.com> schrieb am 10.02.2009 14:38:28:

> I propose changing all instances of getaddrinfo to gethostbyname in 
> the plugins. This will have an added benefit of reducing the load on 
> DNS servers.
> 
> I guess some plugins may specifically want to use getaddrinfo (say a 
> DNS round robin web server), but I think those are the exceptions to 
> the rule.
> 
> Since gethostbyname is already used by check_nrpe and check_icmp, I've 
> confident of the availability of this function.
> 
> Comments?

To make it short - I fully agree with you.
getaddrinfo() should only be used in situations where it's really needed.

Regards
        Sascha


-- 
Sascha Runschke
IT-Infrastruktur

fon      : +49 (201) / 102-1879
fax      : +49 (201) / 102-1102105
mobil : +49 (173) / 5419665



GFKL Financial Services AG
Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp
Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522




More information about the Devel mailing list