get ip using drill
This commit is contained in:
parent
cdfd40e20d
commit
43ab19edc2
1 changed files with 6 additions and 1 deletions
|
@ -69,4 +69,9 @@ gip () {
|
||||||
|
|
||||||
gpip () {
|
gpip () {
|
||||||
curl https://ipv4.nsupdate.info/myip
|
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 a new issue