Using dig to check DNS settings

You can use a browser-based DNS lookup tool, but you can also use the terminal to see the current DNS settings of your domain.

With the dig command you can see if there are any CNAME entries and where they are pointing to. Here we look up and see a CNAME pointing to the App URL like

$ dig
;; Truncated, retrying in TCP mode.

; <<>> DiG 9.8.3-P1 <<>> ANY
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44565
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;       IN  ANY

;; ANSWER SECTION:      600    IN  CNAME        300    IN  CNAME  20    IN  A

;; Query time: 863 msec
;; WHEN: Wed Jun  1 10:25:40 2016
;; MSG SIZE  rcvd: 122

Dig an IP

# This will print out the IP of your App
$ dig +short {{app-name}} 

See also here for why you'll probably need your App's IP.

Further reading

Craft CMS

Install guides

Develop & deploy





Tips & tricks

Need individual help?
Learn about Company plans ›
Looking for an old article?
See the full list of articles ›
Found an error?
Contribute on GitHub ›