I. INTRODUCTION nali: The name is taken from the Chinese pinyin "where. Nali contains a group of command line programs. its main function is to append the IP strings output by some network tools to geographical location information (using pure database QQWry. Dat ). For example, 74.125.128.104 will become 74.125.128.104 [Google Inc., Mountain View, California]. The query is performed locally and does not perform online queries. Therefore, the efficiency does not produce any
I. INTRODUCTION
Nali: The name is taken from the Chinese pinyin "where. Nali contains a group of command line programs. its main function is to append the IP strings output by some network tools to geographical location information (using pure database QQWry. Dat ). For example, 74.125.128.104 will become 74.125.128.104 [Google Inc., Mountain View, California]. The query is performed locally and does not perform online queries. Therefore, the efficiency does not affect the original command.
The following commands are provided:
- Nali
- Nali-dig
- Nali-nslookup
- Nali-traceroute
- Nali-tracepath
- Nali-ping
The premise of using these commands is that their corresponding commands must exist. For example, if you want to use nali-dig, you must ensure that dig exists. Their usage is the same as that of the original command. For example, nali-dig is used in the same way as dig. (Nali-dig is equivalent to dig | nali)
II. Download
# Wget -- no-check-certificate http://qqwry.googlecode.com/files/nali-0.2.tar.gz
III. Installation
# Tar zxvf nali-0.2.tar.gz
# Cd nali-0.2
#./Configure
# Make & make install
4. update the IP database
You can use the nali-update command to update the IP database.
The/usr/local/share/QQWry. Dat file must be updated frequently. Otherwise, the error may be large.
V. use
5.1. nali
# Nali 74.125.128.106
# Nali 61.135.169.105
5.2. nali-dig
# Nali-dig www.google.com
5.3. nali-nslookup
# Nali-nslookup www.google.com
5.4. nali-traceroute
# Nali-traceroute www.google.com
5.5. nali-tracepath
# Nali-tracepath www.baidu.com
5.6. nali-ping
# Nali-ping www.163.com
5.7. Other programs call nali to display the physical IP location. the redirection method can be used, for example:
# Mtr www.google.com | nali
That is to say, the nali command can append geographic information to the standard output ip address. Similarly, if you do not like nali-dig, you can also use commands like dig ip | nali.
6. alias
If you think it is troublesome to enter nali-xxx, you can do some alias, for example:
# Alias traceroute = 'nali-traceroute'
# Alias dig = 'nali-dig'
VII. References
Https://www.surfchen.org/nali