To get just the IP address of your Internet facing Linux machine, use this command. [email protected]:~/Documents/ipinfo/src$ curl [email protected]:~/Documents/ipinfo/src$ curl icanhazip.com This will return just your IP address. This is another way to get this information. [email protected]:~/Documents$ curl ipinfo.io/[email protected]:~/Documents$ curl ipinfo.io/ip To get information about a DNS server, use the dig command. [email protected]:~/Documents/ipinfo/src$ dig 8.8.8.8   …

How to get the geographical location of an IP address. This simple command will get this for you. [[email protected]:~] curl ipinfo.io/203.113.124.148 ; echo "" { "ip": "203.113.124.148", "hostname": "No Hostname", "city": "", "region": "", "country": "TH", "loc": "13.7500,100.4667", "org": "AS9737 TOT Public Company Limited" }[[email protected]:~] curl ipinfo.io/203.113.124.148 ; echo "" { "ip": "203.113.124.148", "hostname": "No …