Add a keyword to force AAAA DNS resolution

Issue #160 resolved
Louis Sautier created an issue

Monit now supports IPv6 but if DNS are used, it seems that IPv4 is preferred. Could you add an option to force IPv6 usage, maybe something like check host myhost with ipv6 address example.com?

Comments (4)

  1. Tildeslash repo owner

    It's implemented in the next Monit release already:

    Ping examples:

    if failed ping  then alert        # Use any available IP version
    if failed ping4 then alert        # Check IPv4 only
    if failed ping6 then alert        # Check IPv6 only
    

    Port examples:

    if failed port 22      then alert # Use any available IP version
    if failed port 22 ipv4 then alert # Check IPv4 only
    if failed port 22 ipv6 then alert # Check IPv6 only
    
  2. Log in to comment