Troubleshooting DNS - the internet broke today

3 ways to test DNS in the command line

Troubleshooting DNS - the internet broke today

Akamai's DNS servers ran into a hiccup today (7/22/21) and it effected some big names, such as Steam, Play Station store, Salesforce, and more. Here are 3 ways to see if it truly is a DNS outage. Pretty much if you get an of these to return, DNS is not a problem. You will receive a timeout error or something similar IF DNS is to blame.

  • Run curl to return the header of the homepage. If you see a HTTP 200/301 or HTTPS 200/301 then you are able to resolve the page:
sshme@pop-os:~$ curl -Isk
HTTP/1.1 200 OK
Server: nginx/1.15.6
Date: Fri, 23 Jul 2021 02:01:05 GMT
Content-Type: text/html
Content-Length: 4791
Last-Modified: Tue, 30 Mar 2021 01:29:07 GMT
Connection: keep-alive
ETag: "60627ee3-12b7"
Accept-Ranges: bytes
  • A good 'ol nslookup -- If you see an IP address (Address below) returned below the hostname (Name below) it's NOT DNS:
sshme@pop-os:~$ nslookup

Non-authoritative answer:
  • Similar to above, you can use dig to look at the DNS record. If you see an IP address in the ANSWER SECTION, DNS is working:
sshme@pop-os:~$ dig

; <<>> DiG 9.16.8-Ubuntu <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41605
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 65494
;                     IN      A

;; ANSWER SECTION:              2664    IN      A

;; Query time: 0 msec
;; WHEN: Thu Jul 22 21:03:17 CDT 2021
;; MSG SIZE  rcvd: 54