in reply to gethostbyname() and www prefix

It is possible that baz.com is not a host, that here is no machine called baz.com

Mail can reach the baz.com domain if there is a Domain Name Service MX record defined for that domain. The MX record can point to any host. The host handling mail for baz.com doesn't have to be in the bax.com domain. It could be in the not-baz.net domain)

You can verify this with the nslookup command.

  1. Type  nslookup at your UNIX / win2K or (?) NT command prompt
  2. At the new prompt enter  set type=ANY
  3. type  baz.com
If there is nothing like a "internet address" in the output and there is something like a "MX preference", the mystery is solved. (Type  exit to leave nslookup. Type  help for more fun commands.



email: mandog