Skip to content

Instantly share code, notes, and snippets.

@tkak
Created May 25, 2012 23:05
Show Gist options
  • Save tkak/2791085 to your computer and use it in GitHub Desktop.
Save tkak/2791085 to your computer and use it in GitHub Desktop.
To set env value to registered DNS IP address ref: http://qiita.com/items/b01198b48ecac47c02c6
ip=`host \`hostname\` | cut -d" " -f4`
echo ${ip}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment