Skip to content

Linux host Guide

Mattscreative edited this page Dec 5, 2025 · 2 revisions

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

  1. host Installation
  2. host Basics
  3. DNS Lookups
  4. Query Types
  5. Troubleshooting

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


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally