What dig does when you query the domain
/etc/resolv.conf (or asks systemd-resolved on many modern distros). The stub does not resolve anything itself. It forwards the question to a recursive resolver, usually run by your ISP, your company, or a public DNS service.
The recursive resolver does the real work. If the answer is not in its cache, it asks a root server which servers handle .com. It then asks a .com TLD server which nameservers are authoritative for digitaledgedc.com. Finally, it asks one of those authoritative nameservers for the A or AAAA record. The answer comes back with a TTL (time to live, in seconds), and the resolver caches it for that long.
dig lets you watch parts of this chain. A plain query shows you the cached view from your resolver. +trace makes dig walk the chain itself, starting at the root, so it skips every cache along the way.
BASH
# What your configured resolver returns (may be cached)
dig digitaledgedc.com A
# Walk the delegation yourself from the root, bypassing caches
dig +trace digitaledgedc.com A
# Ask the authoritative nameservers directly
dig digitaledgedc.com NS +shortTEXT
Illustrative output format:
;; ANSWER SECTION:
digitaledgedc.com. 300 IN A 203.0.113.10
;; Query time: 20 msec
;; SERVER: 192.0.2.53#53(192.0.2.53)Turning the IP into a network you can reason about
How the packet picks its route
BASH
# Which local route and interface the kernel uses for this destination
ip route get 203.0.113.10
# Which ASN announces the prefix (Team Cymru IP-to-ASN service)
whois -h whois.cymru.com ' -v 203.0.113.10'
# Hop-by-hop path with AS numbers, 100 probes, report mode
mtr -rwbz -c 100 203.0.113.10Checking a facility before you move workloads into it
The practical takeaway
dig to learn what a name resolves to and who answered. Use an ASN lookup to learn whose network that address sits on. Use mtr from your users' real ISPs to learn how packets actually get there. Each tool answers a different question, and a domain name answers none of the questions about peering. Before you commit a workload to a facility for Indonesian traffic, get the list of on-net carriers and exchange connections in writing, and test the path from each major eyeball network yourself.