Look up domains whois/dns using terminal

David Carr

Bash Tutorials Development

Terminal is really powerful, I’m often looking up who owns a domain or what IP address a domain has or even it’s A/MX records that are all simple to do with the following commands.

Ping a domain to determine the IP address:

ping dcblog.dev

outputs:

PING dcblog.dev (104.31.82.117): 56 data bytes
64 bytes from 104.31.82.117: icmp_seq=0 ttl=57 time=11.713 ms
64 bytes from 104.31.82.117: icmp_seq=1 ttl=57 time=10.418 ms
64 bytes from 104.31.82.117: icmp_seq=2 ttl=57 time=10.302 ms

Press ctrl + c to stop the ping running.

Look up the whois information for a domain:

whois daveismyname.com

Find what A records a domain has:

host -t A daveismyname.com

Find what MX records a domain has:

host -t MX daveismyname.com

 

Fathom Analytics $10 discount on your first invoice using this link

David Carr - Laravel Developer

Hi, I’m David Carr

A Senior Developer at Vivedia
I love to use the TALL stack (Tailwind CSS, Alpine.js, Laravel, and Laravel Livewire)

I enjoy writing tutorials and working on Open Source packages.

I also write books. I'm writing a new book Laravel Testing Cookbook, This book focuses on testing coving both PestPHP and PHPUnit.

Sponsor me on GitHub

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Laravel Testing Cookbook

Help support the blog so that I can continue creating new content!

Fathom Analytics $10 discount on your first invoice using this link

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2006 - 2023 DC Blog. All code MIT license. All rights reserved.