Advertisement
nighthoodie

fqdn

May 20th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/bash
  2. # fULLY qUALIFIED dOMAIN nAME
  3.  
  4. curl="/usr/bin/curl"
  5. host="/usr/bin/host"
  6. hostname="/bin/hostname"
  7.  
  8. host -4 $(curl -s echoip.org); hostname
  9. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement