-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux host Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to host on Linux, covering Arch Linux, CachyOS, and other distributions including DNS lookups, domain information, and network queries.
Arch/CachyOS:
# Install bind-tools
sudo pacman -S bindDebian/Ubuntu:
sudo apt install dnsutilsFedora:
sudo dnf install bind-utilsBasic usage:
# Lookup domain
host example.com
# Shows IP addressDetailed info:
# Verbose output
host -v example.com
# -v = verbose (detailed information)Specific type:
# Query MX records
host -t MX example.com
# -t = type
host -t AAAA example.com
# Query AAAA recordsPTR lookup:
# Reverse DNS lookup
host 8.8.8.8
# Shows hostnameAll information:
# All record types
host -a example.com
# -a = all (all record types)Use server:
# Use specific DNS server
host example.com 8.8.8.8
# Second argument = DNS serverCheck installation:
# Check host
which host
# Install if missing
sudo pacman -S bindThis guide covered host usage, DNS lookups, and network queries for Arch Linux, CachyOS, and other distributions.
- dig Guide - Advanced DNS queries
- nslookup Guide - DNS queries
- DNS Servers - DNS server setup
-
host Documentation:
man host
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.