/var/logs/paulooi.log
Menu
  • About Me
  • Contact
  • Privacy Policy
Systems Admin, Web Development and etc
Browse: Home » ip address

How to Find Out Public IP Address via Command Line in Unix/Linux Machine

March 8, 2011 · by Paul Ooi · in Systems

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

January 22, 2011 · by Paul Ooi · in Systems

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 Posts

  • How to Rsync from Remote Server to Synology
  • Are you a Programmer and Preparing for an Interview?
  • Sublime Text Editor – Package Control
  • Interesting Services on Fiverr
  • Finally, a new Theme

Recent Comments

  • Paul Ooi on How to Enable check_dns on Nagios Monitoring System
  • Mihai M. on How to Enable check_dns on Nagios Monitoring System
  • Lee Blevins on Setup Sendmail Smart Relay in FreeBSD
  • Mo Beigi on How to Rsync from Remote Server to Synology
  • Finley Hall on How to Flush DNS Cache in Apple Mac OSX Leopard

Copyright © 2021 /var/logs/paulooi.log

Powered by WordPress and Origin