DNS, shell, Snippets 1 Minute

Are you writing a script and some command doesn’t accept hostnames and you don’t want to inline the IP address? dig +short is your friend!

$ dig +short gbenson.net
69.163.152.201

Published by gbenson

I make things // he/him

Published