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 »

Dear SIr,

I am writing to thank you for your letter (and for your educating
me) and say, Good catch.

On Tue, Apr 22, 2003 at 04:13:26PM +0400, martin mcflysr wrote:

> SH> I am rather suprised (being quite thick) that your DNS resolves 3-Com..
> Ok. Let try do this:
>
> # host 3com.com
>
>
>
> I'm get:
>
> 3com.com has address 192.136.32.249
> 3com.com mail is handled (pri=20) by topaz.3com.com
> 3com.com mail is handled (pri=10) by zircon.3com.com
>
> What about you? :-)))
>
>
> for exmaple:
>
> # nslookup 3com.com ns.optus.net.au
> Server: ns.optus.net.au
> Address: 61.88.88.88
>
> Non-authoritative answer:
> Name: 3com.com
> Address: 192.136.32.249
>
>
> # named.version ns.optus.net.au|grep CHAOS
> ;; version.bind, type = TXT, class = CHAOS
> version.bind. 0S CHAOS TXT "9.1.3"
>
>
> 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.

>
> --
> Best regards
> from future, HillDale
> martin mailto:martin@mcflysr.kurgan.ru
>

Yours sincerely.

--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: Stanley.Hopcroft@IPAustralia.Gov.AU
Locked