Skip to content
/ wanip Public

Simple bash utility for fetching wan ip (using dig)

License

Notifications You must be signed in to change notification settings

sigg3/wanip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

wanip

Simple bash utility for fetching wan ip (using dig)

Install

cat wanip.sh >> ~/.bashrc
source ~/.bashrc

Usage

sigg3@pop-os:~$ wanip 
WAN: 8.8.8.8

What

wanip uses dig to lookup the wan ip your ISP set. It saves the WAN ip to ~/.config/wanip file, and will give visual cue if changed:

sigg3@pop-os:~$ wanip 
WAN: 88.88.88.88 (changed from 8.8.8.8)

About

Simple bash utility for fetching wan ip (using dig)

Topics

Resources

License

Stars

Watchers

Forks

Languages