Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10642

DNSResolutionMonitor incorrectly sets port number

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 24.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      If the nameserver parameter for DNSResolutionMonitor matches the pattern \S+:\d+ (ex: 127.0.0.1:10532), then it does not set the port number correctly.

                          final String port = nameserver.substring(pos + 1);
                          LOG.debug("nameserver: hostname={}, port={}", hostname, port);
                          resolver = new SimpleResolver(hostname);
                          resolver.setPort(SystemProperties.getInteger(port));
      

        Attachments

          Activity

            People

            • Assignee:
              ronald.roskens@biworldwide.com Ron Roskens
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: