summaryrefslogtreecommitdiff
path: root/src/dns.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* Tidyup some duplicated code•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7808 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-231-11/+2
* Allow support for multiple dns results per request. This is a significant cha...•••This will allow for a fix to feature request bug #384 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7753 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-191-39/+54
* Removal of ifdef•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7728 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-151-9/+0
* Make sure that dns sockets never block (thanks djGrrr)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-08-091-0/+2
* Windows specific data types in EventHandler are now Extensible items•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7599 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-271-0/+4
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1/+1169
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are au...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1169/+1
* Optimizations and code tidyups. QA please check that svsnick and other forced...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7416 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-07-011-1/+1
* - Made the recvfrom wrapper a bit neater.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7314 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-06-141-9/+1
* - Fixed UDP Overlapped I/O under windows. (not the best way this could be don...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7313 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar burlex2007-06-141-1/+9
* Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-301-4/+1
* Visual studio's ability to translate tabs to four spaces as default frustrate...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-191-6/+6
* Windows support. Tested and working to compile on freebsd and linux. Next ste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-191-2/+16
* Refactor port binding, warning not yet tested fully•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6982 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-111-1/+1
* Ident fixes,•••removal of some old craq we dont use. cgiirc optimizations and tidyups git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6541 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-071-1/+0
* Remove debug output that was only useful to me•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6530 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-7/+0
* Move var around•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6513 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-1/+1
* DNS lookups now work for users.•••Todo: Upon receiving 'no resource records found' on doing AAAA or PTR6, immediately re-insert a request looking for A or PTR. someone remind me about this when i have time. Also todo: inspsocket connects. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6512 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-15/+39
* Fix the ipv6 end•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6510 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-1/+1
* Change some stuff here to bind INADDR_ANY•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6509 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-061-2/+2
* No gaurantees on this atm•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6508 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-051-15/+31
* This wont compile atm•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6507 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-051-1/+13
* Stuff to make dns work protocol-independent•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6506 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-02-051-35/+11
* Keep gcc from whining when there is NOT an error (see the comments added)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6420 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-211-2/+3
* Crusade to remove debug from stable and tested parts of the core and base mod...•••Most of the code here being de-noised hasnt had a crash or bug in it for many months, if not a year so the debug output is useless noise in the logfile when trying to trace a bug in a REAL problem area. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6356 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-151-41/+2
* Add repeating timers, and make an hourly prune of the dns cache, otherwise a ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6264 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-081-8/+39
* Add /CLEARCACHE, oper only command which completely purges the DNS cache -- u...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6259 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-081-0/+9
* Oh, this tweak is for w00t -- rehash will remove expired items from the dns c...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6257 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-081-1/+3
* Document dns caching, add a "bool cached" to OnLookupComplete method in Resol...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6254 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-071-2/+2
* DNS caching stuff (almost done)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-071-5/+5
* DNS Stuff - this wont work right yet, it will soon (tm)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6250 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-071-15/+87
* Add TTL stuff to dns system (pass it to inherited objects)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6247 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-071-18/+22
* Fix whoopsies•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6194 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-311-0/+2
* Add missing feature: /rehash reinitializes dns subsytem (and can handle chang...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6193 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-311-24/+28
* Refactor dns.cpp to use an array of request types rather than map, for O(1) l...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6042 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-12-181-27/+20
* Still more massive commit fun. Headers in include/ still to be done, else tha...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-12-151-1/+0
* Jesus, look who's the commit whore today. More header updates, and removal of...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-12-151-9/+4
* Fix all the _FORTIFY_SOURCE warnings except "punned pointer".•••We CANNOT fix this, as it is the recommended (and only) way to dlsym a symbol from a .so file. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5770 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-191-1/+5
* Add fix for patch #166 (this is a reasonably big one)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5679 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-101-1/+22
* Apply patch by satmd which performs ipv4 lookup on 4in6 users•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5631 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-021-6/+11
* Socket error state stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5607 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-311-1/+1
* Default to 5 if none set•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5524 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-221-1/+1
* Respect the dns timeout value in the conf•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5523 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-221-2/+2
* Change around some dns stuff (dont use this yet)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5522 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-221-1/+6
* Call OnError when timing out•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5520 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-221-3/+4
* DNS timeouts missing•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5519 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-221-23/+50
* Document more classes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5435 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-10-061-24/+32
* Fix for uninitialized var in valgrind output•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5172 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-09-081-0/+4
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-301-7/+0
* EventHandler class, an abstraction for raw i/o•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-181-73/+60