#591·gping

Feature Request: Ping All A Records for a DNS Hostname

Author: danie-dejagerCreated Aug 19, 2026Updated Aug 19, 2026

When a DNS hostname is supplied as a target, gping should resolve all of its IPv4 A records and ping each resolved IP address individually by default.

gping supports specifying multiple IP addresses/hosts as targets, allowing several endpoints to be monitored simultaneously. gping uses Rust's ToSocketAddrs to resolve a hostname. It does retrieve all addresses returned by the resolver into ipaddr. But then it explicitly selects only one address: -4: first IPv4 address -6: first IPv6 address otherwise: the first address returned. The function ultimately returns a single String IP address

However, when a DNS name resolves to multiple A records, the DNS name is currently treated as a single target rather than automatically monitoring all of the IP addresses returned by DNS.

Requested Behaviour

When a user supplies a DNS hostname, gping should:

Perform a DNS lookup for the hostname. Retrieve all IPv4/6 A records associated with the hostname. Create a ping target for each unique IP address returned. Display and monitor each IP address independently.

For example:

gping example.com

If example.com resolves to:

192.0.2.10 192.0.2.11 192.0.2.12

gping should effectively monitor all three addresses simultaneously, rather than only monitoring a single resolved address.