summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/dns.c
AgeCommit message (Expand)Author
2012-08-25- introduce struct stat_valueGilles Chehade
2012-08-21Allow smtpd to work as a backup MX, relaying only to MXs with higherEric Faurot
2012-08-21Use TAILQ rather than array for mx list.Eric Faurot
2012-08-21dns sessions don't use lookup. no need to store them in a tree.Eric Faurot
2012-08-19coding style: replace all occurences of u_int* with uint*Charles Longeau
2012-08-18- introduce stat_backend, an API for pluggable statistic backendsGilles Chehade
2012-08-08cleanup some old debug tracesEric Faurot
2012-07-29fix bogus permfail when no MX is defined on a valid domain.Eric Faurot
2012-07-09move to the new resolver implementation, with temporary glue to useEric Faurot
2012-04-14improve readabilityEric Faurot
2012-01-11Try to parse hostnames as IP addresses before resolving. This allowsEric Faurot
2012-01-11Improve error reporting. Most errors during hostname lookup areEric Faurot
2011-09-01Introduce a small set of functions to manage stat counters in aEric Faurot
2011-07-20Fix reporting of permanent/temporary failures for MX lookups.Eric Faurot
2011-07-03imsg.h requires sys/queue.h and sys/uio.h.Nicholas Marriott
2011-05-06move dns session specific structs and prototypes out of smtpd.h.Eric Faurot
2011-05-01the smtpd env is meant to be global, so do not pass it all around.Eric Faurot
2011-04-17cleanups, cosmethic changes, functions that should be static are now staticGilles Chehade
2011-04-02add stat counters for the lookup agentEric Faurot
2011-03-31cleanup and simplification following the asr update.Eric Faurot
2011-03-29remove unused code now that reverse lookups are done through asr.Eric Faurot
2011-03-29make use the cname query interface from asr for reverse lookupsEric Faurot
2011-03-27add a function to factorize resetting of dnssession events.Eric Faurot
2011-03-26Fix the MX lookup process:Eric Faurot
2011-03-26Tweak the asr API to make things a bit smoother on the user side.Eric Faurot
2011-03-26use an index for iterating into the mx list.Eric Faurot
2011-03-23Simplify resolver initialization. This is done only onceEric Faurot
2011-03-09make similar code .. more similarTodd T. Fries
2011-03-09*** empty log message ***Todd T. Fries
2010-12-19If MX lookup fails, fallback to using the host itself. This has always beenGilles Chehade
2010-12-12use memcpy instead of a cast/deref dance that was reading pastJonathan Gray
2010-11-29replace the fork-based-non-blocking-resolver-hack by shiny async resolverGilles Chehade
2010-11-28remove unused headersGilles Chehade
2010-11-28a bit of .h cleanups, no functionnal changeGilles Chehade
2010-09-08we do dns resolutions in a separate process because we don't have an asyncGilles Chehade
2010-06-29force the dns buffers to be aligned using a union, until the retardedTheo de Raadt
2010-06-02check event_dispatch() return valueCharles Longeau
2009-11-14add missing header needed by signal()Charles Longeau
2009-11-11Fix previous. When configured to relay via IP address, MX lookup would failJacek Masiulaniec
2009-11-05Consider DNS lookups that result in NXDOMAIN to be a permanent failure.Joel Sing
2009-11-05Introduce a 6yz status code, used internally to report permanent errors.Joel Sing
2009-09-03imsg_get sets errno so use fatal instead of fatalx.Jacek Masiulaniec
2009-08-08import some changes from portable smtpd to reduce the delta between both.Gilles Chehade
2009-06-06Sync with relayd:Pierre-Yves Ritschard
2009-06-05make smtpd's imsg lib ready, just like relayd and ospfd.Pierre-Yves Ritschard
2009-06-01Fix EV_READ/EV_WRITE testing inside IMSG handlers. Based on similar changeJacek Masiulaniec
2009-05-09- New API to handle all DNS query types (A, MX, PTR) asynchronously.Jacek Masiulaniec
2009-02-22replace MAX* constants by sizeof where possibleOleg Safiullin
2009-02-15If MX query fails due to DNS error, do not attempt more queries; ok gilles@Jacek Masiulaniec
2009-02-15Fix a bug where list of 6 MXs or more was not handled correctly.Jacek Masiulaniec