On 20/10/14 14:22, Frank Bulk (iname.com) wrote: > We’re using this in a bash shell script. I don’t think there’s a native > shell command to get the IP, so I’ll use a mixture of host and dig as > necessary. If your system has it, try "getent" e.g. getent ahosts hostname