replaced the BIND guess (based on BSDishness) with checks for gethostbyname and setho...