resolveip
Resolve hostnames to IP addresses
TLDR
Resolve a hostname to an IP address
SYNOPSIS
resolveip [options] hostnameorip...
DESCRIPTION
resolveip resolves hostnames to IP addresses and performs reverse lookups of IP addresses to hostnames. It is a utility included with MariaDB/MySQL for basic DNS resolution, often used in database configuration scripts.
The command accepts multiple arguments and resolves each in turn. For hostnames, it returns all associated IP addresses; for IP addresses, it returns the hostname from reverse DNS.
PARAMETERS
-s, --silent
Silent mode; print only IP addresses or hostnames-h, --help
Display help message-v, --version
Display version information
CAVEATS
Depends on system DNS configuration (/etc/resolv.conf). May return different results than web browsers due to local DNS caching or hosts file entries. For more comprehensive DNS queries, consider using dig or host commands.
HISTORY
Included with MariaDB and MySQL as a simple utility for resolving hostnames in database administration contexts. While basic compared to tools like dig, it provides straightforward output suitable for scripts.
