SEMU does not resolve A records properly
software for email automation (newsletters, transaction mails, etc.)
Brought to you by:
maschoff
Looks like semu.py is not resolving A records properly.
It searches for "mail exchanger" or "internet address" in nslookup output.
For MX record it's fine :
Non-authoritative answer:
google.com mail exchanger = 20 alt1.aspmx.l.google.com.
But for hosts without MX record NSLOOKUP output is different, it doesn't contain "internet address" :
Non-authoritative answer:
Name: swissinfo.org
Address: 146.159.229.100
swissinfo.org nameserver = ns1.srgssr.ch.
swissinfo.org nameserver = ns2.srgssr.ch.
swissinfo.org
origin = ns1.srgssr.ch
mail addr = hostmaster.srgssr.ch
serial = 2010020926
refresh = 10800
retry = 3600
expire = 604800
minimum = 86400
We recommend to install module "pydns" because nslookup is a less-than-ideal solution and output is too dependent from its version.