Under Linux, if there is a delay in the network, we usually need to analyze our own network environment to the peer server.
1 Example: Ping www.baidu.com 2 Traceroute www.baidu.com
Through analysis to determine what is probably the problem, but when we go to track an IP when we do not know the source, if every one to go to www.ip138.com on the efficiency is too slow, and very troublesome, so a very convenient software turned out (nali-0.2.tar.gz).
Nali, the name is taken from the Chinese "where" pinyin. Nali contains a set of command-line programs whose main function is to attach the IP strings of some of the network Tools ' output to the location information (using the pure database).
1 Nali includes the following commands: 2 # Nali 3 # Nali-dig 4 # nali-ping 5 # Nali-nslookup 6 # Nali-tracepath 7 # Nali-traceroute
Each command is the same as the original command usage on Linux. such as: Nali-ping www.baidu.com
First, download the installation:
1 # tar zxf nali-0.2.tar.gz 2 # 3#./configure && make && make install
These commands can be called directly after the installation is complete. It will be in the display of IP at the same time after the geographical location, very convenient, below we will look at the effect of it!
There is also the use of the external command call Nali:
Using Nali to analyze the Web Access log, of course, through the shell some simple processing to sort the traffic, making the output very user-friendly:
# Cat/etc/httpd/logs/access_log | awk ' {print $} ' | sort | uniq-c | nali | sort-rnk1 | more
If you feel you are entering trouble, add an alias:
# VIM/ROOT/.BASHRC Add a: Alias ping='nali-ping' The remaining few pieces similar to the final entry into force:# SOURCE/ROOT/.BASHRC
Display IP location under Linux