Install the latest nali ip display tool in centos
It was originally intended to automatically update the ip address library of www.slogra.com and found that nali could automatically download the ip address library. However, after some tests, it was found that the ip address display effect was not very correct, so it was not displayed, however, in order to prevent such a tool from being buried, the following article is available.
System: centos 5.x
Required software packages: nali-0.2.tar.gz
1. Download nali
Wget -- no-check-certificate http://qqwry.googlecode.com/files/nali-0.2.tar.gz
2. Install nali
Tar zxf nali-0.2.tar.gz & cd nali-0.2
./Configure
Make & make install
3. Update the nali ip database
Cd/usr/local/share
Nali-update
After the update, you can copy the QQWry. Dat file to the location you called in php.
Ps:
Currently, nali includes the following commands:
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)
Of course, nali can also be used in local queries, but my need is to call the ip address library in php, so I can query the ip address on the web.
References:
Http://www.cnblogs.com/mchina/archive/2012/12/24/2831220.html