get ip using drill
This commit is contained in:
parent
cdfd40e20d
commit
43ab19edc2
1 changed files with 6 additions and 1 deletions
|
@ -70,3 +70,8 @@ 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 a new issue