get ip from url linux code example
Example 1: display ip address linux
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
Example 2: show ip address linux
$ hostname -I
Example 3: linux get ip by domain
$ dig +short somedomain.com
Example 4: how to find ip adress of a web side kali linux
1 Dig method
sudo dig website
2 nslookup method
sudo apt install nslookup
nslookup website
3 Host method
host website
4 ping method
ping website