# When You Can't Ping, You Dig

DevFeed: [When You Can't Ping, You Dig](<https://devfeed.tech/articles/when-you-can-t-ping-you-dig-28127.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/aws/2020/07/22/when-you-can-t-ping-you-dig.html>)

Author: Fuzzygroup

Published: 2020-07-22T00:00:00Z

Content type: article

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [dig command examples](<https://devfeed.tech/topics/dig-command-examples.md>), [network troubleshooting commands](<https://devfeed.tech/topics/network-troubleshooting-commands.md>)

Tags: [attacks](<https://devfeed.tech/tags/attacks.md>), [aws](<https://devfeed.tech/tags/aws.md>), [internet](<https://devfeed.tech/tags/internet.md>)

## AI overview

The excerpt distinguishes checking whether an Internet service is available from checking its address: ping is used for availability, while dig can look up the address for a hostname such as foo.bar.com. It notes that ping may be disabled because of ping-flooding attacks, mentioning AWS as an example. The suggested command is `dig foo.bar.com`; the excerpt does not claim this confirms that the service is up.

## Source excerpt

Normally when I'm trying to validate that an Internet service is available, well, I ping. Ping is one of those Internet bedrock protocols that I'm firmly in the camp of "SHOULD ALWAYS, ALWAYS, ALWAYS BE TURNED ON". But there are ping flooding attacks, etc so there are reasons why it isn't always a default (looking at you here AWS; staring you dead in the eyes with the 'ol stink eye). I recently realized that while it isn't example the same, if you're trying to validate something's address (as opposed to knowing if it is actually up), you can actually use dig. So instead of: ping foo.bar.com try: dig foo.bar.com