≡ Menu

Multiple Host Command

Use the following and replace the domain name with your choice.

for i in {1..5}; do host="ns${i}.he.net"; echo -n "${host}: "; dig +short ${host}; done

Comments on this entry are closed.

Next post:

Previous post:

Copyright © Nish Vamadevan 2002-2017. All Rights Reserved. Terms and Policies.