Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

host

DNS lookup utility

Syntax

host [OPTION]... NAME [SERVER]

Common Options

-aShow all records
-tSpecify query type
-CShow SOA records
-RSet retry count
-WSet wait timeout

Common Examples

host google.com

Query domain info

host -t MX google.com

Query MX records

host -a google.com

Show all DNS records

host 8.8.8.8

Reverse DNS lookup

host google.com 8.8.8.8

Use specific DNS server

Related Commands

Related Tools

More Code & Dev Tools