Linux host Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Linux host Guide
Complete beginner-friendly guide to host on Linux, covering Arch Linux, CachyOS, and other distributions including DNS lookups, domain information, and network queries.
Table of Contents
host Installation
Install host
Arch/CachyOS:
# Install bind-tools
sudo pacman -S bind
Debian/Ubuntu:
sudo apt install dnsutils
Fedora:
sudo dnf install bind-utils
host Basics
Lookup Domain
Basic usage:
# Lookup domain
host example.com
# Shows IP address
Verbose Output
Detailed info:
# Verbose output
host -v example.com
# -v = verbose (detailed information)
DNS Lookups
Query Type
Specific type:
# Query MX records
host -t MX example.com
# -t = type
host -t AAAA example.com
# Query AAAA records
Reverse Lookup
PTR lookup:
# Reverse DNS lookup
host 8.8.8.8
# Shows hostname
Query Types
All Records
All information:
# All record types
host -a example.com
# -a = all (all record types)
Custom DNS Server
Use server:
# Use specific DNS server
host example.com 8.8.8.8
# Second argument = DNS server
Troubleshooting
host Not Found
Check installation:
# Check host
which host
# Install if missing
sudo pacman -S bind
Summary
This guide covered host usage, DNS lookups, and network queries for Arch Linux, CachyOS, and other distributions.
Next Steps
- 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.