in reply to Net::SMTP assistance
The manpage suggests specifying: Domain => AF_INET. This changes how this is handled in the DNS lookup when both IPv6 and IPv4 records exist.
However this needs to be disambiguated in the Net::SMTP call, prior to IO::Socket::INET being called. This may require changing the host wide resolver behavior to prefer INET4 records to AAAA records, or specifying perl module dns lookup to return A records only. Partial answer to investigate why this new behavior.
In addition to the key-value pairs accepted by IO::Socket, + "IO::Socket::INET6" provides. Domain Address family AF_INET | AF_I +NET6 | AF_UNSPEC (default)
If "Domain" is not given, AF_UNSPEC is assumed, that is, bo +th AF_INET and AF_INET6 will be both considered when resolving DNS n +ames. AF_INET6 is prioritary.
(Concrete to IPv4 protocol) $sock = IO::Socket::INET6->new(PeerAddr => 'www.perl.org +', PeerPort => 'http(80)', Domain => AF_INET , Proto => 'tcp');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SMTP assistance
by Anonymous Monk on May 20, 2015 at 19:01 UTC | |
by FFSparky (Acolyte) on May 21, 2015 at 12:23 UTC | |
|
Re^2: Net::SMTP assistance
by Anonymous Monk on May 20, 2015 at 18:32 UTC |