Simple bash utility for fetching wan ip (using dig)
cat wanip.sh >> ~/.bashrc
source ~/.bashrc
sigg3@pop-os:~$ wanip
WAN: 8.8.8.8
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)