Getting the domain name
- From: Michael B Allen <mba2000@xxxxxxxxxx>
- Date: Fri, 23 Mar 2007 14:06:20 -0400
Can anyone recommend a portable way of getting the domain name of the
local machine? I find it amazing that there's no builtin method for
doing this (gethostname does not necessarily contain the domain).