lazydns

Dual Selector Plugin

dual_selector filters DNS answers by IPv4/IPv6 preference. It is useful when you need to prefer A or AAAA records, or provide fallback behavior between the two address families.

Preferences

Configuration (plugin args)

The dual_selector plugin is configured via args.preference in the plugin config.

plugins:
  - tag: dual
    type: dual_selector
    args:
      preference: "ipv4" # ipv4 | ipv6 | ipv4_prefer_ipv6_fallback | ipv6_prefer_ipv4_fallback | both

When to use