summaryrefslogtreecommitdiffstats
path: root/rfc1035
AgeCommit message (Collapse)Author
2021-11-11rfc1035mxlist: add an distinct return code for "MX ." reply.Sam Varshavchik
2021-05-21-Wall and -Werror fixesSam Varshavchik
2021-05-19Tolerate -Wall and -WerrorSam Varshavchik
Fixes to configure scripts and code so that it compiles (hopefully correctly) with -Wall and -Werror. Remove support for ancient BSD stricmp and strnicmp functions. AC_CHECK_FUNC does not work for strcasecmp and strncasecmp under -Wall, it's simpler to remove it.
2021-03-01Fix handling of bad DNS queries.Sam Varshavchik
2020-05-08Restart query from the original hostname.Sam Varshavchik
2020-05-08Tweaks to the return codes.Sam Varshavchik
2020-05-07More simultaneous DNS query support.Sam Varshavchik
2020-04-21Reindent code.Sam Varshavchik
2020-04-21Use parallel queries in rfc1035_resolve_multiple.Sam Varshavchik
2020-04-21Add AC_PROG_CC_C99Sam Varshavchik
2020-04-09Fix AXFR processing.Sam Varshavchik
2020-04-09Separate tcp query into rfc1035_resolve_multiple_attempt_tcp.Sam Varshavchik
Move the check for the AXFR query into _idna, and call _tcp from there. Call _tcp from _multiple_attempt too, in case of truncation.
2020-04-09Factor out rfc1035_resolve_multiple_attempt.Sam Varshavchik
The inner loop of rfc1035_resolve_multiple_idna becomes() rfc1035_resolve_multiple_attempt(). rfc1035_resolve_multiple_idna keeps the retry loop, and the loop that iterates over all NSes, then the inner part of the loop becomes rfc1035_resolve_multiple_attempt() which returns NULL on failure, keeping the loop going. A non-NULL return indicates success. The code that closes udpfd, and updates rfc1035-dns remains in rfc1035_resolve_multiple_idna().
2020-04-07Add rfc1035_udp_query_response_alloc_bis.Sam Varshavchik
2020-04-07Refactor rfc1035_query_udp (2/2).Sam Varshavchik
Adds rfc1035_udp_query_multi(). rfc1035_query_udp is just a wrapper for it, now.
2020-04-06Refactor rfc1035_query_udp (1/2).Sam Varshavchik
The struct rfc1035_udp_query_responses collects multiple UDP responses to concurrent UDP queries. rfc1035_udp_query_response_alloc() allocates it. rfc1035_udp_query_response_free() deletes it. Nobody else cares about rfc1035_recv_udp, make it static. The existing rfc1035_recv_udp code gets renamed as rfc1035_recv_one_udp_response, and receives a rfc1035_udp_query_responses pointer, and instead of returning a response, and its buflen, it reads a response, and finds an unanswered query, in rfc1035_udp_query_responses, for which this response is receives, and saves it there: loop over each query, and if it doesn't have its response yet, and the response's serial number matches the query's, store the query there, else throw it away. The replacement rfc1035_recv_udp wrapper rfc1035_udp_query_response_alloc-s, rfc1035_recv_one_udp_response, and fetches the received response out of it. then rfc1035_udp_query_response_free()s.
2019-12-05gnutls: UTF-8 and hostname fixes.Sam Varshavchik
2019-10-02If either ipv4 or ipv6 lookup succeeeds, ignore the other's SOFTFAIL.Sam Varshavchik
2019-07-308-bit clean SPF headers.Sam Varshavchik
2018-07-23librfc1035: use UTF8 for DNS queriesSam Varshavchik
DNS lookups use libidn to convert UTF8 hostname to ACE. DNS replies convert ACE to UTF8 hostnames.
2017-03-15Fix TLS verification when DNS lookup comes back with CNAMEs.Sam Varshavchik
2016-03-06"mx" keyword a no-op MX-less domains, rather than returning "error".Sam Varshavchik
2016-03-04Remove newlines from SPF error messages, were logged as ?s in headers.Sam Varshavchik
2015-06-27Fix some bounds checking issues. Added ESMTP_PREFER_IPV6_MX setting.Sam Varshavchik
2015-02-16Fix compiler warnings, testsuite.Sam Varshavchik
2014-11-05Implement support for SPF records with multiple strings.Sam Varshavchik
2014-09-10Fix SPF mx lookup failures.Sam Varshavchik
When A/AAAA records are not included in the MX response, explicitly query both A and AAAA records, instead of returning A records if they were found; also query AAAA before A. MX lookup for an SPF check -- new RFC1035_MX_QUERYALL flag to force both A and AAAA queries.
2014-08-19Xepher <xepher@xepher.net> - fix SPF include recursion lookups.Sam Varshavchik
2014-02-15fix for automake >=1.13David Heidelberger
2013-08-25Renamed configure.in to configure.acSam Varshavchik
2013-08-25Clear entire ipv6 address for an invalid address.Sam Varshavchik
Should never take this error path anyway. If we did, it means that ::ffff: followed by the output of rfc1035_ntoa_ipv4() was not parsable by inet_pton().
2013-08-25Initial checkinSam Varshavchik
Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy.