Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

IPv6 address detection fallback not working correctly #95

@apschultz

Description

@apschultz

The +short method of dig may return outputs in the case of an error. For example, if no IPv6 DNS server is available:

/ # dig +short @2606:4700:4700::1111 -6 ch txt whoami.cloudflare
;; connection timed out; no servers could be reached

It would be better to check the exit code and that the contents conforms to an IPv6 address string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions