get ip using drill

master
David Kebler 2024-04-29 13:30:47 -07:00
parent cdfd40e20d
commit 43ab19edc2
1 changed files with 6 additions and 1 deletions

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
}