From b8651fc6c6717ce4d18574e147f291df1eb8c831 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 23 Nov 2020 22:10:04 -0500 Subject: [PATCH] Add reverse lookup on Internet address --- home/lib/login_functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index dbde373..9442579 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -539,9 +539,12 @@ status() { echo + local -r internet_addr=$(internet_addr 0.5) + local -r internet_ptr=$(host -W 1 "$internet_addr" | awk 'NR == 1 {print $NF}' ) + echo 'net' echo "${indent_unit}internet" - echo "${indent_unit}${indent_unit}$(internet_addr 0.5)" + echo "${indent_unit}${indent_unit}$internet_addr $internet_ptr" echo "${indent_unit}if" (ifconfig; iwconfig) 2> /dev/null \ | awk ' -- 2.20.1