# dig command examples

Examples for using the Linux dig DNS utility to perform DNS lookups and network diagnostics.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Here's My Network Troubleshooting Toolbox

DevFeed: [Here's My Network Troubleshooting Toolbox](<https://devfeed.tech/articles/here-s-my-network-troubleshooting-toolbox-90793.md>)

Original publisher: [Read original article](<https://spin.atomicobject.com/network-troubleshooting-toolbox/>)

Author: Patrick Bacon

Published: 2026-10-20T12:00:47Z

Content type: article

Language: en

Sources: [Atomic Object](<https://devfeed.tech/sources/atomic-object.md>)

Topics: [network troubleshooting commands](<https://devfeed.tech/topics/network-troubleshooting-commands.md>), [IP routing](<https://devfeed.tech/topics/ip-routing.md>), [Network Configuration](<https://devfeed.tech/topics/network-configuration.md>), [dig command examples](<https://devfeed.tech/topics/dig-command-examples.md>), [network-intelligence](<https://devfeed.tech/topics/network-intelligence.md>)

Tags: [command](<https://devfeed.tech/tags/command.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [device](<https://devfeed.tech/tags/device.md>), [display](<https://devfeed.tech/tags/display.md>), [dns](<https://devfeed.tech/tags/dns.md>), [dns-configuration](<https://devfeed.tech/tags/dns-configuration.md>), [dns-servers](<https://devfeed.tech/tags/dns-servers.md>), [domain-name](<https://devfeed.tech/tags/domain-name.md>), [expression](<https://devfeed.tech/tags/expression.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [network-troubleshooting](<https://devfeed.tech/tags/network-troubleshooting.md>), [network-troubleshooting-commands](<https://devfeed.tech/tags/network-troubleshooting-commands.md>), [networking](<https://devfeed.tech/tags/networking.md>), [wireguard](<https://devfeed.tech/tags/wireguard.md>)

### AI overview

The excerpt gives a practical network troubleshooting toolbox for macOS and Linux. Use `netstat -rn -f inet` on macOS or `ip -4 route` on Linux to inspect routes; `route -n get` or `ip route get` to check the route to a specific address; and `scutil --dns` or `resolvectl status` to inspect DNS configuration. For name resolution, `dscacheutil` and `resolvectl query` use the system's configured resolvers, while `dig @server` queries a chosen DNS server. It also shows `ifconfig` and `ip -4 addr` for interface addresses, `lsof` for processes using a port, and `tcpdump` with interface and packet filters to monitor traffic. The author notes these tools have more options than the examples cover.

### Source excerpt

As I mentioned in an earlier post, I've been experimenting a bit with WireGuard lately. In the process, I've been learning about a number of network troubleshooting commands, and before I forget what they all are and do, I'm going to capture them here so I (and you!) can find them again. Here's my network [...] The post Here's My Network Troubleshooting Toolbox appeared first on Atomic Spin.

## Distributed Latency Monitoring at Black Hat

DevFeed: [Distributed Latency Monitoring at Black Hat](<https://devfeed.tech/articles/distributed-latency-monitoring-at-black-hat-8417.md>)

Original publisher: [Read original article](<https://blogs.cisco.com/security/bhusa-2026-te-latency/>)

Author: Adam Kilgore

Published: 2026-09-07T15:00:37Z

Content type: tutorial

Language: en

Sources: [Security @ Cisco](<https://devfeed.tech/sources/security-cisco-blogs.md>)

Topics: [ThousandEyes](<https://devfeed.tech/topics/thousandeyes.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [dig command examples](<https://devfeed.tech/topics/dig-command-examples.md>), [network troubleshooting commands](<https://devfeed.tech/topics/network-troubleshooting-commands.md>), [cURL](<https://devfeed.tech/topics/curl.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>)

Tags: [black-hat](<https://devfeed.tech/tags/black-hat.md>), [cisco-thousandeyes](<https://devfeed.tech/tags/cisco-thousandeyes.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [dns](<https://devfeed.tech/tags/dns.md>), [event](<https://devfeed.tech/tags/event.md>), [latency](<https://devfeed.tech/tags/latency.md>), [linux](<https://devfeed.tech/tags/linux.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [network](<https://devfeed.tech/tags/network.md>), [network-operations-center](<https://devfeed.tech/tags/network-operations-center.md>), [noc](<https://devfeed.tech/tags/noc.md>), [packet](<https://devfeed.tech/tags/packet.md>), [performance](<https://devfeed.tech/tags/performance.md>), [security](<https://devfeed.tech/tags/security.md>), [thousandeyes](<https://devfeed.tech/tags/thousandeyes.md>)

### AI overview

Black Hat's network team paired ThousandEyes dashboards and automated tests with on-demand Linux commands to monitor latency across conference rooms and troubleshoot protocol-specific problems. ThousandEyes covered HTTPS, cloud services, agent-to-agent paths, DNS, and downloads; curl broke HTTPS timing into DNS lookup, TCP connection, TLS handshake, time to first byte, and total time. Repeated curl runs can reuse cached DNS results, so the team used dig against a specified Umbrella DNS server for more consistent DNS query measurements. In one conference incident, high-volume DNS requests contributed to NAT exhaustion; protocol-specific tests and packet captures helped distinguish DNS failures from general latency or slow page loads. The article presents ThousandEyes for broad and targeted visibility, with curl and dig providing quick component-level checks.

### Source excerpt

Learn how the Black Hat NOC/SOC used ThousandEyes, Linux command-line testing, and packet evidence to monitor distributed latency, isolate DNS issues, and validate network performance during a live cybersecurity event.

## Linux nameservers and DNS Resolution

DevFeed: [Linux nameservers and DNS Resolution](<https://devfeed.tech/articles/linux-nameservers-and-dns-resolution-20869.md>)

Original publisher: [Read original article](<https://linuxblog.io/linux-nameservers-dns-resolution/>)

Author: Hayden James

Published: 2026-08-10T10:56:20Z

Content type: tutorial

Language: en

Sources: [Hayden James](<https://devfeed.tech/sources/hayden-james.md>)

Topics: [Domain Name System (DNS)](<https://devfeed.tech/topics/dns-resolution-process.md>), [Network Configuration](<https://devfeed.tech/topics/network-configuration.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [dig command examples](<https://devfeed.tech/topics/dig-command-examples.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [configure](<https://devfeed.tech/tags/configure.md>), [dns](<https://devfeed.tech/tags/dns.md>), [dns-servers](<https://devfeed.tech/tags/dns-servers.md>), [domain](<https://devfeed.tech/tags/domain.md>), [failover](<https://devfeed.tech/tags/failover.md>), [fedora](<https://devfeed.tech/tags/fedora.md>), [glibc](<https://devfeed.tech/tags/glibc.md>), [guide](<https://devfeed.tech/tags/guide.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [ip](<https://devfeed.tech/tags/ip.md>), [linux](<https://devfeed.tech/tags/linux.md>), [resolver](<https://devfeed.tech/tags/resolver.md>), [retries](<https://devfeed.tech/tags/retries.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [sysadmins](<https://devfeed.tech/tags/sysadmins.md>), [troubleshoot](<https://devfeed.tech/tags/troubleshoot.md>)

### AI overview

Linux hostname lookup follows the order configured in /etc/nsswitch.conf; entries in /etc/hosts can therefore take precedence over DNS. DNS server settings are in /etc/resolv.conf, whose nameserver entries are tried in order with retries and failover under the traditional glibc resolver. Search and domain directives affect how short names are expanded, while ndots controls when that suffix is tried. On modern distributions, /etc/resolv.conf may be managed automatically, so direct edits can be overwritten after reboot or network changes. Check whether it is a regular file or a symlink to identify what manages it. The excerpt ends during this explanation and does not provide the promised full troubleshooting steps.

### Source excerpt

A practical guide to DNS resolution on Linux: how /etc/resolv.conf, systemd-resolved, and dig work together, and how to troubleshoot common nameserver failures. Continue reading...

## 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

## Enabling DNS split authority with OctoDNS

DevFeed: [Enabling DNS split authority with OctoDNS](<https://devfeed.tech/articles/enabling-dns-split-authority-with-octodns-69490.md>)

Original publisher: [Read original article](<https://github.blog/engineering/infrastructure/enabling-split-authority-dns-with-octodns/>)

Author: Ross McFarland

Published: 2017-04-27T07:00:00Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [Domain Name System (DNS)](<https://devfeed.tech/topics/dns-resolution-process.md>), [Amazon Route 53](<https://devfeed.tech/topics/amazon-route-53.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [DNS security](<https://devfeed.tech/topics/dns-security.md>), [dig command examples](<https://devfeed.tech/topics/dig-command-examples.md>)

Tags: [chatops](<https://devfeed.tech/tags/chatops.md>), [dns](<https://devfeed.tech/tags/dns.md>), [dry-run](<https://devfeed.tech/tags/dry-run.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [github](<https://devfeed.tech/tags/github.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [redundancy](<https://devfeed.tech/tags/redundancy.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [site-reliability](<https://devfeed.tech/tags/site-reliability.md>)

### AI overview

GitHub describes using OctoDNS to manage DNS records as configuration and keep them synchronized across multiple providers. The workflow uses Git-based changes, previews planned updates in dry-run mode, and applies approved changes to support split authority and reduce dependence on a single provider.

### Source excerpt

Building robust systems involves designing for failure. As Site Reliability Engineers at GitHub, we're always on the lookout for places where redundancy can help to mitigate problems, and today we'll...