Bug 98895 - [PATCH] net-mgmt/nagios-plugins: Fix check_dns error on 4.X
Summary: [PATCH] net-mgmt/nagios-plugins: Fix check_dns error on 4.X
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ion-Mihai "IOnut" Tetcu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-13 07:30 UTC by chinsan
Modified: 2006-07-11 19:20 UTC (History)
1 user (show)

See Also:


Attachments
nagios-plugins-1.4.3_1,1.patch (777 bytes, patch)
2006-06-13 07:30 UTC, chinsan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chinsan 2006-06-13 07:30:20 UTC
- Fix check_dns error on 4.X
  Since FreeBSd 5.x, the build-in nslookup has been MFCed from BIND 9 and related bits.
  and retire the BIND 8 sources.

  So, we still need a hyphen (-) as the prefix of the first argument on 4.X,
  This workaround patch can fix this problem.
  
  Thanks!

Port maintainer (jarrod@netleader.com.au) is cc'd.

Generated with FreeBSD Port Tools 0.77

How-To-Repeat: 

FreeBSD 4.X box:
----------------

chinsan@saint </usr/local/etc/nagios> nslookup bbs.webamp.cc 203.187.29.178
*** Can't find server name for address 203.187.29.178: No information
*** Default servers are not available

chinsan@saint </usr/local/etc/nagios> nslookup -bbs.webamp.cc 203.187.29.178
*** Invalid option: bbs.webamp.cc
Server:  dns3.giga.net.tw
Address:  203.133.1.7

Name:    u29-178.u203-187.giga.net.tw
Address:  203.187.29.178
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-06-13 07:36:13 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Jarrod Sayers 2006-06-13 11:35:12 UTC
Chinsan,

Unfortunately, I am slightly confused as to what the problem is  
here.  In your first example, you attempt to resolve bbs.webamp.cc  
using 203.187.29.178 as your name server - this looks like the IP  
assigned to you by your ISP.  Your second example, the suggested fix,  
actually still results in an error but returns the PTR record for  
203.187.29.178, instead of an A record for bbs.webamp.cc which is  
what I am assuming you are testing for.  But, this uses the name  
servers from your /etc/resolv.conf (like 203.133.1.7).

Same command line arguments tested against the current version of  
Bind 9 available in the ports tree, plus the one in a standard  
FreeBSD 4.11 installation:

Bind 9.3.2:
wallace# nslookup www.netleader.com.au 210.11.55.170
Server:         210.11.55.170
Address:        210.11.55.170#53

Name:   www.netleader.com.au
Address: 210.11.55.171

wallace#

Bind 8.3.7-REL:
wallace# ./nslookup www.netleader.com.au 210.11.55.170
Server:  manhattan.netleader.com.au
Address:  210.11.55.170

Name:    www.netleader.com.au
Address:  210.11.55.171

wallace#

Jarrod.
Comment 3 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-07-09 14:09:22 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!
Comment 4 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-07-09 15:01:27 UTC
State Changed
From-To: closed->open

Closed by mistake.
Comment 5 Ion-Mihai "IOnut" Tetcu freebsd_committer freebsd_triage 2006-07-11 18:56:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->itetcu

Track; will close in 2 days if nothing new is sent, sicen maintainer 
rejects it.
Comment 6 chinsan 2006-07-11 19:17:49 UTC
2006/7/12, Ion-Mihai Tetcu <itetcu@freebsd.org>:
> Synopsis: [PATCH] net-mgmt/nagios-plugins: Fix check_dns error on 4.X
>
> Responsible-Changed-From-To: freebsd-ports-bugs->itetcu
> Responsible-Changed-By: itetcu
> Responsible-Changed-When: Tue Jul 11 17:56:16 UTC 2006
> Responsible-Changed-Why:
> Track; will close in 2 days if nothing new is sent, sicen maintainer
> rejects it.
>
Hi, itetcu:

It's okay, please close this PR(ports/98895)
Thank you and jarrod. :)


Sincerely,

chinsan
Comment 7 Mark Linimon freebsd_committer freebsd_triage 2006-07-11 19:19:00 UTC
State Changed
From-To: open->closed

Closed at submitter's request.