[Bug 249027] net-mgmt/monitoring-plugins unable to set port with check_dig
    bugzilla-noreply at freebsd.org 
    bugzilla-noreply at freebsd.org
       
    Mon Aug 31 10:37:43 UTC 2020
    
    
  
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249027
            Bug ID: 249027
           Summary: net-mgmt/monitoring-plugins unable to set port with
                    check_dig
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mat at FreeBSD.org
          Reporter: joakim.lindblom at loopia.se
             Flags: maintainer-feedback?(mat at FreeBSD.org)
          Assignee: mat at FreeBSD.org
Using -p for check_dig seems to put the port option for drill after name and
server arguments which does not seem to work when using drill.
check_dig -v -H 10.10.10.10 -p 5353 -l test.test
will run
/usr/bin/drill  @10.10.10.10 -z -p 5353  test.test A
An ugly hack with a manual argument seems to work as the port argument will be
placed earlier in the command.
check_dig -v -H 10.10.10.10 -p 5353 -l test.test -A '-p 5353'
will run
/usr/bin/drill -p 5353 @10.10.10.10 -z -p 5353  test.test A
The first drill command will ignore the port option but the second will work.
The man pages for drill says "drill [ OPTIONS ] name [ @server ] [ type ] [
class ]" so this argument might need to be moved to a former position in the
command.
Maybe this should be solved in the extra-patch-dig-to-drill.diff file?
-- 
You are receiving this mail because:
You are the assignee for the bug.
    
    
More information about the freebsd-ports-bugs
mailing list