Skip to content

[BUG] Extra AAAA query per host #210

@0xpsyduck

Description

@0xpsyduck

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

With default Probe config provided

+ FPing
binary = /usr/sbin/fping

+ FPing6
binary = /usr/sbin/fping
protocol = 6

FPing binary is called without the -4 option, although it defaults to IPv4 but it makes both A and AAAA queries, and when the same host is probed with both FPing and FPing6 then an additional AAAA query is made by fping -6 binary just within a fraction of second.
This results in an unecessary 3 queries per dual stack host and unncessary traffic.

Proposed Change

+ FPing
binary = /usr/sbin/fping
protocol = 4

A simple change i.e. adding protocol = 4 to the FPing Probe config solves this issue.
Now fping -4 only makes A query and fping -6 only makes AAAA query.
After making the proposed change, number of queries are decreased significantly

Image

Expected Behavior

No response

Steps To Reproduce

  1. Run container as is with defaults and add a target to be probed with both FPing and FPing6
+ Microsoft
menu = Microsoft
title = Microsoft

++ v4
menu = Microsoft v4
title = Microsoft v4
probe = FPing
host = microsoft.com

++ v6
menu = Microsoft v6
title = Microsoft v6
probe = FPing6
host = microsoft.com
  1. Capture DNS queries with packet capture or see logs in your configured DNS server.
  2. There will be 3 queries for microsoft.com, one A and two AAAA.

Environment

CPU architecture

x86-64

Docker creation

Defaults

Container logs

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions