Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some networking stuff: revip() and asn() #504

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fza
Copy link

@fza fza commented Feb 28, 2015

I added two shorthand functions:

# Get information about an IP (ASN number, owner, etc.). Works with domains, too.
# It simply looks up the IP at spameatingmonkey.net over DNS. Does not work with IPv6, unfortunately.
$ asn 8.8.8.8
8.8.8.0/24 | AS15169 | Google Inc. | 2000-03-30 | US
$ asn github.com
192.30.252.0/24 | AS36459 | GitHub, Inc. | 2012-11-13 | US
# Return an IP address in reverse form. Works with IPv6, too. Actually this is a helper function for asn().
$ revip 1.2.3.4
4.3.2.1
$ revip 2a00:1450:4016:803::1008
8.0.0.1.0.0.0.0.0.0.0.0.0.0.0.0.3.0.8.0.6.1.0.4.0.5.4.1.0.0.a.2

The alias myasn echoes the ASN info for the current ip.

Maybe this is of interest for anyone :)

swinstanley pushed a commit to swinstanley/dotfiles that referenced this pull request May 25, 2015
…m_vim

fix colors in console vim on iterm2
@mathiasbynens mathiasbynens changed the base branch from master to main June 16, 2020 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant