Posted By

vikiyou on 06/05/13


Tagged

network host


Versions (?)

host wrapper


 / Published in: Bash
 

Dns lookups system /usr/bin/host

  1. # Name: host() wrapper
  2. # Arg: Domain/Url/IP
  3. # Purpose: Dns lookups system /usr/bin/host
  4. host(){
  5. local t="$1"
  6. local _host="/usr/bin/host"
  7. local c=$(_getdomainnameonly "$t")
  8. [ "$t" != "$c" ] && echo "Performing DNS lookups for \"$c\"..."
  9. $_host $c
  10. }

Report this snippet  

You need to login to post a comment.