add curl based DNS lookup
parent
5f6108a5e2
commit
b40dfc3382
|
@ -55,3 +55,14 @@ gedit() { ${GEDITOR:-xed} $@; }
|
|||
unlocku () ( faillock --user $1 --reset )
|
||||
|
||||
rsynchg() { rsync --help | grep "\-$1"; }
|
||||
|
||||
|
||||
gip () {
|
||||
if which jqx &> /dev/null; then
|
||||
curl -s "https://dns.google/resolve?name=$1" | jq -r '.Answer[] | .data'
|
||||
return 0
|
||||
else
|
||||
echo install jq to use this function
|
||||
return 1
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue