From dff8f92cf06124e2747b48d4f426269072e6fbba Mon Sep 17 00:00:00 2001 From: "George D. Plymale II" Date: Sat, 13 Aug 2016 00:01:26 -0400 Subject: [PATCH] dig.md: add reverse DNS lookup example (#1003) Doing a reverse DNS lookup by typing out the IP address in reverse, plus adding .in-addr.arpa to the end is tedious, but fortunately dig has the -x option which makes that process much simpler as one can just feed it a normal IP address. --- pages/common/dig.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/dig.md b/pages/common/dig.md index 5db8573cf..eeba72993 100644 --- a/pages/common/dig.md +++ b/pages/common/dig.md @@ -13,3 +13,7 @@ - Specify an alternate DNS server to query (8.8.8.8 is google's public DNS): `dig @8.8.8.8 {{hostname.com}}` + +- Perform a reverse DNS lookup on an IP address (PTR record): + +`dig -x 8.8.8.8`