From 43ab19edc2ed5f5a030c6c247f048a6f58c69da6 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Mon, 29 Apr 2024 13:30:47 -0700 Subject: [PATCH] get ip using drill --- load/01-basic | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/load/01-basic b/load/01-basic index 83baab3..71b5728 100644 --- a/load/01-basic +++ b/load/01-basic @@ -69,4 +69,9 @@ gip () { gpip () { curl https://ipv4.nsupdate.info/myip -} \ No newline at end of file +} + + +dip () { +/bin/drill $1 | grep -A1 'ANSWER SECTION' | grep -v "ANSWER SECTION" | rev | cut -f1 | rev +}