Newest tool for displaying IP location information in Centos-nali

Source: Internet
Author: User
Tags ip location information nslookup

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.