summaryrefslogtreecommitdiff
path: root/src/dns.cpp
Commit message (Expand)AuthorAgeFilesLines
* 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
* Just to mess with om's head, remove helperfuncs.h from everywhere•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-1/+1
* Change to using Instance->Log (InspIRCd::Log) rather than log() macro•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-22/+22
* Now two types of log macro, log() and ilog(). log() assumes an InspIRCd objec...•••TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-3/+0
* Move the socket functions like insp_ntoa into their own namespace. They arent...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4828 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-0/+7
* Passing invalid instance to dns isnt a good idea•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4825 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-1/+1
* Fix passing wrong instance to resolver•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4824 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-0/+4
* Change some resolver stuff.•••OM, THIS STILL WONT COMPILE! Error on the same line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4821 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-5/+2
* ServerConfig extern moved into class InspIRCd•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-7/+6
* Extra checking that the fd's we pass to SocketEngine::AddFd were added (a lot...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4780 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-081-1/+13
* Fixes for ::0 ip's, disable autobind when using ::ffff: etc•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4703 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-041-0/+8
* Safety wrapper defines for ipv6 code on ipv4 ircds•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4697 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-041-1/+6
* Add proper support for "munging" of ipv6 addresses when ::ffff:addr is used (...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4693 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-5/+10
* Change some checking•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4692 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-3/+9
* More stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4691 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-1/+2
* Odd stuff with ::ffff ipv6 addresses•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4690 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-0/+5
* Extra debug•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4689 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-0/+6
* Tweak•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4688 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-1/+2
* Tweak tweak•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4687 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-1/+2
* Change to use inaddr6_any•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4686 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-1/+5
* Add more debug•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4685 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-0/+1
* Debug output on invalid nameserver address in constructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4684 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-0/+6
* Add strerror stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4683 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-1/+4
* Tidier MakeIP6Int()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4681 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-5/+4
* Its ip6.arpa, not ip6.int?•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4680 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-031-1/+1