get ip using drill
parent
cdfd40e20d
commit
43ab19edc2
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue