Cookies ahead

Our support chat tool "Intercom" would like to collect some more data on you. See the related link for more details.

Docs

Dig

Reviewedbyfl

Markdown ↓

🔍

Query DNS records from terminal.

Query public DNS entries from the terminal using the dig command.

The dig command queries public DNS records to show which IP addresses a domain name resolves to. This example shows how to look up a domain.

$ dig fortrabbit.com

; <<>> DiG 9.10.6 <<>> fortrabbit.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44565
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;fortrabbit.com.            IN  A

;; ANSWER SECTION:
fortrabbit.com.      600    IN  A       52.48.51.144

;; Query time: 24 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; MSG SIZE  rcvd: 59
shell

Dig an IP

# This prints the IP of the app
$ dig +short {{app-env-id}}.frbit.app
shell

Written by a human. Review, grammar checks and typo fixes by AI.

AI use & editorial processEdit on GitHub ↗