How to Find Out Public IP Address via Command Line in Unix/Linux Machine
If you have more than 100 servers in your network; behind a firewall; lazy to access to documentation. Here is the alternative option to find out your machine’s public IP Address via command line
1 2 3 4 5 6 7 8 9 |
$ wget -q -O - http://ipchicken.com | grep -o -E '(^|[[:space:]])[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*([[:space:]]|$)' # By default, FreeBSD doesn't have wget, you can use fetch instead $ fetch -q -o - http://www.ipchicken.com | grep -o -E '(^|[[:space:]])[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*([[:space:]]|$)' |
You need port 80 external/WAN…
Reverse DNS Lookup with Dig
Reverse DNS, in simple explanation it means that resolve your IP address into hostname. Nowaday it became a must have requirement for mail server’s IP address. It is also one of the method to determine your mail server IP is…
Recent Comments