resolveip

Resolve hostnames to their IP addresses and vice versa. More information: <https://mariadb.com/kb/en/resolveip/>.

Install

All systems
curl cmd.cat/resolveip.sh
Debian Debian
apt-get install mariadb-server-10.3
Ubuntu
apt-get install percona-xtradb-cluster-server-5.5
Arch Arch Linux
pacman -S percona-server
image/svg+xml Kali Linux
apt-get install mariadb-server-10.1
CentOS
yum install mysql-server
Fedora
dnf install community-mysql-server
Windows (WSL2)
sudo apt-get update sudo apt-get install percona-xtradb-cluster-server-5.5
OS X
brew install percona-server
Raspbian
apt-get install mariadb-server-5.5

Resolve hostnames to their IP addresses and vice versa. More information: <https://mariadb.com/kb/en/resolveip/>.

  • Resolve a hostname to an IP address:
    resolveip example.org
  • Resolve an IP address to a hostname:
    resolveip 1.1.1.1
  • Silent mode. Produces less output:
    resolveip --silent example.org

© tl;dr; authors and contributors