bashrc: Add function dig-reverse

This commit is contained in:
Lexi / Zoe 2025-12-08 15:17:28 +01:00
parent 9ccef54ca7
commit b3170e9d0a
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,11 @@ function b64dec() {
alias digs='dig +short'
alias digrr='dig +noall +answer'
# Resolve a hostname to its IP and back to a hostname via reverse DNS
function dig-reverse() {
dig +short -x $(dig +short $@)
}
# Print all information in lsblk in JSON for better readability
alias lsblkjson='lsblk -O --json'