summaryrefslogtreecommitdiff
path: root/src/dns.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Make threaded dns stable by placing some mutexes around some stl stuff (this ↵Gravatar brain2006-07-201-11/+49
| | | | | | really needs lots of testing now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4460 e03df62e-2008-0410-955e-edbf42e46eb7
* Threaded dns stuff - im going to try and make this stable in 1.1Gravatar brain2006-07-201-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4459 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed all that lastcreate and wantclose craq from dns.cpp (WHAT THE FUCK ↵Gravatar brain2006-07-191-11/+0
| | | | | | WERE THE FIREDNS GUYS SMOKING) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4454 e03df62e-2008-0410-955e-edbf42e46eb7
* * Seperate out socket engines into derived classes of SocketEngine.Gravatar brain2006-07-191-0/+1
| | | | | | | | | * Add a classfactory SocketEngineFactory to create a new socketengine of the configured type * Implement configure hax to compile only the required socketengine and the base class * Eliminates ugly defines, and is more in line with C++ ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweaks for nonblocking dnsGravatar brain2006-07-161-4/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4432 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix socket leak properly this timeGravatar brain2006-07-161-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4405 e03df62e-2008-0410-955e-edbf42e46eb7
* Rollback dns changeGravatar brain2006-07-141-5/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4384 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix dns socket leak found in stableGravatar brain2006-07-141-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4383 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed debuggingGravatar brain2006-07-121-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4368 e03df62e-2008-0410-955e-edbf42e46eb7
* All this works now (hopefully)Gravatar brain2006-07-121-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4367 e03df62e-2008-0410-955e-edbf42e46eb7
* Throw moduleexception if you:Gravatar brain2006-07-121-0/+7
| | | | | | | | (a) try and resolve hosts before the core is initialized (HOW?!) (b) try and resolve a host and the domain server is totally unreacable e.g. through lack of fd's or ifconfig eth0 down :p (this is the only safe way, any other way may result in a developer inserting an invalid pointer into a list of Resolver* theyre watching) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4360 e03df62e-2008-0410-955e-edbf42e46eb7
* TypoGravatar brain2006-07-121-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4358 e03df62e-2008-0410-955e-edbf42e46eb7
* Make it work:Gravatar brain2006-07-121-9/+41
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4357 e03df62e-2008-0410-955e-edbf42e46eb7
* Added class Resolver (needs testing)Gravatar brain2006-07-121-0/+98
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4353 e03df62e-2008-0410-955e-edbf42e46eb7
* Return false was missingGravatar brain2006-05-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3928 e03df62e-2008-0410-955e-edbf42e46eb7
* delete operator tracking in debug mode (using a macro -- live with it.)Gravatar brain2006-04-241-12/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵Gravatar w00t2006-04-061-49/+49
| | | | | | THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
* Const refs (this is about the last of them in the core api)Gravatar brain2006-03-121-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3694 e03df62e-2008-0410-955e-edbf42e46eb7
* Support for hostnames in <bind> tag (so long as the hostname resolves to a ↵Gravatar brain2006-03-101-12/+23
| | | | | | locally bindable ip) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3621 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo in some code that should usually be #ifdef'ed out anyway, but we still ↵Gravatar brain2006-02-091-2/+2
| | | | | | want this to work sometimes, maybe. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3147 e03df62e-2008-0410-955e-edbf42e46eb7
* *UNTESTED DO NOT USE YET* - async dns for InspSocket as test - removing ↵Gravatar brain2006-02-021-0/+14
| | | | | | requirement on nss_dns.so.1 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3017 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow async dns to compile -- but its still experimental and should not be ↵Gravatar brain2006-02-011-2/+2
| | | | | | used on a production network! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3006 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove last relic of last goto in inspircd (an unused label)Gravatar om2006-01-251-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2907 e03df62e-2008-0410-955e-edbf42e46eb7
* One goto is now no gotos.Gravatar brain2006-01-251-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2904 e03df62e-2008-0410-955e-edbf42e46eb7
* Updated copyrights in headers etc using perl inplace editGravatar brain2006-01-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup of K&R style indenting, comments in silly places, and pointless curly ↵Gravatar brain2005-12-311-111/+171
| | | | | | braces around non-blocks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2718 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to QueryType rather than short int for query typesGravatar brain2005-12-311-36/+32
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2717 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed crappy linked list stuff and replaced with faster std::mapGravatar brain2005-12-311-27/+24
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2716 e03df62e-2008-0410-955e-edbf42e46eb7
* Improving niceness of DNS code, i WILL make this readable!Gravatar brain2005-12-311-52/+46
| | | | | | | Changed a ton of ugly firedns #define's to enums git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2715 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed an extremely n00bish mistake involving referencing a global copy of ↵Gravatar brain2005-12-291-6/+3
| | | | | | | | | ServerEngine when we now use one local to class InspIRCd (everyone point and laugh at Brain) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2692 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved serverstats stuff outGravatar brain2005-12-161-7/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2529 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved SocketEngine* SE into InspIRCd classGravatar brain2005-12-161-5/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2527 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved command parsing crap into command_parse.cppGravatar brain2005-12-161-0/+42
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2505 e03df62e-2008-0410-955e-edbf42e46eb7
* Started moving of data into ServerConfig classGravatar brain2005-12-141-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2393 e03df62e-2008-0410-955e-edbf42e46eb7
* Half way through updating to move a ton of extern confs into class ServerConfigGravatar brain2005-12-141-8/+7
| | | | | | | WILL NOT RUN ATM git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2392 e03df62e-2008-0410-955e-edbf42e46eb7
* Tied in DNS to SocketEngineGravatar brain2005-12-121-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2333 e03df62e-2008-0410-955e-edbf42e46eb7
* Attempts to make DNS nicer with new socket engineGravatar brain2005-12-121-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2332 e03df62e-2008-0410-955e-edbf42e46eb7
* *EXPERIMENTAL* Tied DNS into new socket engineGravatar brain2005-12-121-0/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2331 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed behaviour of module API to pass Server* to the constructor, rather ↵Gravatar brain2005-12-071-1/+0
| | | | | | than have to create one (makes more sense) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2252 e03df62e-2008-0410-955e-edbf42e46eb7
* Tons of DNS debugging and stability fixesGravatar brain2005-12-071-33/+29
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2247 e03df62e-2008-0410-955e-edbf42e46eb7
* DNS safety and loggingGravatar brain2005-12-071-1/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2246 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed dns lookupsGravatar brain2005-12-021-1/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2098 e03df62e-2008-0410-955e-edbf42e46eb7
* Bloody ip addresses.Gravatar brain2005-12-021-6/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2097 e03df62e-2008-0410-955e-edbf42e46eb7
* Om's ip is annoying to parse.Gravatar brain2005-12-021-1/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2096 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to %u for unsignedGravatar brain2005-12-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2092 e03df62e-2008-0410-955e-edbf42e46eb7
* Signed octets in dns forward lookup! GAHGravatar brain2005-12-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2091 e03df62e-2008-0410-955e-edbf42e46eb7
* Multithreaded DNS -- not tested!!!!Gravatar brain2005-12-011-1/+31
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2088 e03df62e-2008-0410-955e-edbf42e46eb7
* Started on -Wall - safe compileGravatar brain2005-05-301-5/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1570 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed to use __single_client_alloc, faster on most systems in a single threadGravatar brain2005-05-151-0/+2
| | | | | | | Specified namespace std in *all* files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7
* New docsGravatar brain2005-05-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1399 e03df62e-2008-0410-955e-edbf42e46eb7