Network
The host command
Resolves domain names to IP addresses and back, with short output.
Syntax
host dominio | host IPCopy-ready examples
$ host miguelacm.esName to IP$ host 93.184.216.34IP to nameYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It is terser than dig; if you need details, use dig.
FAQ
Can it check whether a domain exists?
Yes: if it does not resolve, it errors with 'not found'.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course