get ip using drill

This commit is contained in:
David Kebler 2024-04-29 13:30:47 -07:00
parent cdfd40e20d
commit 43ab19edc2

View file

@ -69,4 +69,9 @@ gip () {
gpip () {
curl https://ipv4.nsupdate.info/myip
}
}
dip () {
/bin/drill $1 | grep -A1 'ANSWER SECTION' | grep -v "ANSWER SECTION" | rev | cut -f1 | rev
}