Bug 1620274 - check_dns has strange output if domain is not found
Summary: check_dns has strange output if domain is not found
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nagios-plugins
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen John Smoogen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-22 20:47 UTC by Peter Bieringer
Modified: 2019-08-29 20:17 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-29 20:17:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Bieringer 2018-08-22 20:47:50 UTC
Description of problem:
check_dns has strange and unexpected output if domain is not found


Version-Release number of selected component (if applicable):
rpm -qf /usr/lib64/nagios/plugins/check_dns
nagios-plugins-dns-2.2.1-14.20180725git3429dad.el7.x86_64
(epel-testing)


How reproducible:
always


Steps to Reproduce:
/usr/lib64/nagios/plugins/check_dns -H 1.1.1.1.sbl.spamhaus.org -q A -s 1.1.1.1

Actual results:
DNS WARNING - 		1.1.1.1


Expected results:
a message containing somehow the NXDOMAIN result



Additional info:

related strace shows that original information is received:

[pid 12394] write(1, "Server:\t\t1.1.1.1\nAddress:\t1.1.1.1#53\n\n** server can't find 88.217.158.108.sbl.spamhaus.org: NXDOMAIN\n\n", 102) = 102
[pid 12393] <... read resumed> "Server:\t\t1.1.1.1\nAddress:\t1.1.1.1#53\n\n** server can't find 88.217.158.108.sbl.spamhaus.org: NXDOMAIN\n\n", 4096) = 102

Comment 1 Stephen John Smoogen 2018-08-22 21:38:37 UTC
This looks to be a feature request that needs to be done in the upstream code. I have copied the above to https://github.com/nagios-plugins/nagios-plugins/issues/412 where it would be better to get some traction on the request.

Comment 2 Stephen John Smoogen 2019-08-29 20:17:48 UTC
I am closing this as it is more of an upstream and I have not seen any action on it in a year :/


Note You need to log in before you can comment on or make changes to this bug.