Netcat (nc
) is telling you that it can't resolve the name "smtp.xxxxx.yy". That's what nc: getaddrinfo: Name or service not known
means.
To verify that this is the issue, I'd suggest entering the IP of your SMTP server manually in your nc command instead of the domain name. If that works, then it's definitely a DNS issue.
To see what's going wrong in DNS, try running nslookup smtp.xxxxx.yy
. This will show you what the DNS server thinks the correct IP is. I'm expecting that it will return one of the two following messages.
Scenario 1 - No DNS servers are configured, or are not reachable by the EXSi host:
nslookup foo.bar.baz
;; connection timed out; no servers could be reached
Scenario 2 - DNS server configured and reachable, but requested domain name is not valid
carbon:~ % nslookup foo.bar.baz
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find foo.bar.baz: NXDOMAIN
Here's a VMWare KB article on the topic of troubleshooting DNS issues.