Re: [Nagios-devel] nagios bug report

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] nagios bug report

Post by Guest »

On Tue, 2003-04-22 at 18:36, Stanley Hopcroft wrote:

> > I think, that RFC-1035 was obsolete?
> >
>
> Thanks for pointing this out. I don't know the details but 1123 says
>
> '
> 2.1 Host Names and Numbers
>
> The syntax of a legal Internet host name was specified in RFC-952
> [DNS:4]. One aspect of host name syntax is hereby changed: the
> restriction on the first character is relaxed to allow either a
> letter or a digit. Host software MUST support this more liberal
> syntax.
>
> Host software MUST handle host names of up to 63 characters and
> SHOULD handle host names of up to 255 characters.
>
> '
>
> This suggests that the is_hostname function in plugins/utils.c is wrong
> and should be modified accordingly, however I think I should start
> shutting up here, because my former comments were _wrong_ (the obsolete
> 1.2.9 plugins used the incorrect is_hostname() in utils.c) .
>
> The code from this years CVS has is_hostname() in netutils.c and this
> uses getaddrinfo() to do gethostbyname_ctx (??).
>
> So to sum up, If you haven't done so already, try the CVS plugin code or
> the latest release from SourceForge.
>
> If it doesn't build, post a bug report
> If it doesn't work and your resolver is happy with your hostname, post a
> bug report.
>
> Sorry for wasting everyones time.

Not a waste of my time. You just saved me from tracking down the RFC.

I will chnge the plugin in the 1.3.x branch

--
Karl






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: karl@debisschop.net
Locked