Answer the question
In order to leave comments, you need to log in
How to remove dot after domain?
You only need to get the domain and its ip. I get:
dig google.com +noall +answer | cut -f 1,6
google.com. 216.58.209.206
google.com. 216.58.209.206
dig google.com +noall +answer | cut -f 1 | sed -e 's/\.$//'
Answer the question
In order to leave comments, you need to log in
Well, developing your idea:
dig google.com +noall +answer | cut -f 1,6 | sed -e 's/\.\t/\t/'
dig google.com +noall +answer|awk '{print $5" "substr($1,1,length($1)-1)}'
host -t A google.com | cut -d ' ' -f 1,4
google.com 142.251.1.102
google.com 142.251.1.138
google.com 142.251.1.139
google.com 142.251.1.101
google.com 142.251.1.100
google.com 142.251.1.113
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question