summaryrefslogtreecommitdiff
path: root/src/dns.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Tidier MakeIP6Int()Gravatar brain2006-08-031-5/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4681 e03df62e-2008-0410-955e-edbf42e46eb7
* Its ip6.arpa, not ip6.int?Gravatar brain2006-08-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4680 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra stuff for forcing a v4 or v6 lookupGravatar brain2006-08-031-0/+59
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4679 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved ip6.int builder (no more HUGE sprintf craq)Gravatar brain2006-08-031-34/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4678 e03df62e-2008-0410-955e-edbf42e46eb7
* Added test framework, so that i can work on improving MakeIP6IntGravatar brain2006-08-031-18/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4677 e03df62e-2008-0410-955e-edbf42e46eb7
* *.ip6.int PTR lookups. FUGLY AS FUCK. someone please help me tidy ↵Gravatar brain2006-08-031-6/+40
| | | | | | (backported from firedns) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4676 e03df62e-2008-0410-955e-edbf42e46eb7
* AAAA lookup fixed. Theyre returned as string, without need for inet_pton ↵Gravatar brain2006-08-031-10/+8
| | | | | | with an in6_addr, so that its possible to resolve ipv6 without an ipv6 supporting kernel ;) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4675 e03df62e-2008-0410-955e-edbf42e46eb7
* Support CNAME, AAAAGravatar brain2006-08-031-31/+122
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4673 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix sockaddr structs for ipv6Gravatar brain2006-08-031-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4672 e03df62e-2008-0410-955e-edbf42e46eb7
* Add some commentingGravatar brain2006-08-031-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4670 e03df62e-2008-0410-955e-edbf42e46eb7
* add erroring if there are already 65536 id's in transitGravatar brain2006-08-031-2/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4669 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for spoofed DNS replies where the source-port is invalid, or the ip is ↵Gravatar brain2006-08-031-6/+29
| | | | | | not that of the nameserver we're configured to use git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4668 e03df62e-2008-0410-955e-edbf42e46eb7
* Properly check for duplicate dns id's from the PRNGGravatar brain2006-08-031-3/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4667 e03df62e-2008-0410-955e-edbf42e46eb7
* Improve PRNGGravatar brain2006-08-031-3/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4666 e03df62e-2008-0410-955e-edbf42e46eb7
* Pseudo-random id's again, combined with incrementing value, gettimeofday and ↵Gravatar brain2006-08-021-2/+3
| | | | | | geteuid using xor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4661 e03df62e-2008-0410-955e-edbf42e46eb7
* Add back stats counters for dns total, good and badGravatar brain2006-08-021-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4660 e03df62e-2008-0410-955e-edbf42e46eb7
* Allocate request id's in sequence, which means we wont get a duplicate id ↵Gravatar brain2006-08-021-4/+5
| | | | | | | | | until 65536 id's have been given out. Much safer than rand() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4659 e03df62e-2008-0410-955e-edbf42e46eb7
* Change more names and typesGravatar brain2006-08-021-15/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4657 e03df62e-2008-0410-955e-edbf42e46eb7
* Absolutely everything is now part of class DNS, or class Resolver.Gravatar brain2006-08-021-5/+29
| | | | | | | | | This means our dns code is totally encapsulated and we know that changing it wont effect anything else so long as the interface stays the same. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4656 e03df62e-2008-0410-955e-edbf42e46eb7
* More tidyingGravatar brain2006-08-021-46/+47
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4655 e03df62e-2008-0410-955e-edbf42e46eb7
* Move more stuff into private members of class DNSGravatar brain2006-08-021-21/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4654 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyups, rename some varsGravatar brain2006-08-021-23/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4653 e03df62e-2008-0410-955e-edbf42e46eb7
* Made MasterSocket staticGravatar brain2006-08-021-22/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4652 e03df62e-2008-0410-955e-edbf42e46eb7
* Move more stuff into class DNSGravatar brain2006-08-021-102/+103
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4651 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweak case of all classes to match those in the rest of the coreGravatar brain2006-08-021-38/+49
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4650 e03df62e-2008-0410-955e-edbf42e46eb7
* Change comment at start of the file, rename dns_connectionGravatar brain2006-08-021-29/+27
| | | | | | | | to dns_request (they no longer represent connections with unique FD's so the old name was kind of silly) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4649 e03df62e-2008-0410-955e-edbf42e46eb7
* Change a messageGravatar brain2006-08-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4648 e03df62e-2008-0410-955e-edbf42e46eb7
* More tidying. Add comments. More comments to do :pGravatar brain2006-08-021-8/+30
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4647 e03df62e-2008-0410-955e-edbf42e46eb7
* Add error messages to Resolver::OnError()Gravatar brain2006-08-021-70/+68
| | | | | | | | Add exception handling to several places that use Resolver (it can throw) Remove Resolver::ProcessResult(), its now handled within the bowels of dns.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4646 e03df62e-2008-0410-955e-edbf42e46eb7
* The great summer clean (better than a spring clean)Gravatar brain2006-08-021-62/+61
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4645 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup var names. people who use 'l' to mean 'length' need to be shot with a ↵Gravatar brain2006-08-021-22/+35
| | | | | | brick git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4644 e03df62e-2008-0410-955e-edbf42e46eb7
* More tidyupsGravatar brain2006-08-021-36/+34
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4643 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyups (as usual)Gravatar brain2006-08-021-20/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4642 e03df62e-2008-0410-955e-edbf42e46eb7
* More tidyupsGravatar brain2006-08-021-10/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4641 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup var names. If i ever meet this person who called all the firedns vars ↵Gravatar brain2006-08-021-14/+12
| | | | | | 'l' and 'c' and 'r' im going to beat them with Om's fish. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4640 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup dns.cppGravatar brain2006-08-021-8/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4639 e03df62e-2008-0410-955e-edbf42e46eb7
* InspSocket no longer resolves hosts.Gravatar brain2006-08-021-0/+2
| | | | | | | | | InspSocket::DoResolve() and the stuff that calls it is gone, if you pass InspSocket an invalid ip, it will bail during its connect. You must now use Resolver classes to resolve hostnames into IP addresses, if you wish to do this. Currently, only one non-extra module does this, see class ServernameResolver within m_spanningtree git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4634 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove unused temp buffersGravatar brain2006-08-011-97/+38
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4623 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed threaded dns (it might make a comeback some day, but as it stands ↵Gravatar brain2006-08-011-863/+537
| | | | | | | | | | its incompatible with the new OO resolver) Migrated to new OO resolver, removed as much firedns craq as is safe to do so, operates over one file descriptor now and keyed against request id. The only way to use the system is via class Resolver (so i'll need to migrate the rest of the ircd to use it) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4622 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix broken inet_pton callGravatar brain2006-08-011-4/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4616 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for inspsocket in ipv6 environmentGravatar brain2006-08-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4615 e03df62e-2008-0410-955e-edbf42e46eb7
* Still working under ipv4 nowGravatar brain2006-08-011-751/+749
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4614 e03df62e-2008-0410-955e-edbf42e46eb7
* Dns stuffGravatar brain2006-08-011-57/+37
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4613 e03df62e-2008-0410-955e-edbf42e46eb7
* This might well be the last commit to this dns resolver in its current form. ↵Gravatar brain2006-08-011-5/+11
| | | | | | With a bit of luck, we can make a better (always-threaded) one git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4612 e03df62e-2008-0410-955e-edbf42e46eb7
* The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if ↵Gravatar brain2006-08-011-22/+27
| | | | | | this works yet. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7
* AF_INET -> define to AF_FAMILY, will be either AF_INET or AF_INET6Gravatar brain2006-08-011-13/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4610 e03df62e-2008-0410-955e-edbf42e46eb7
* Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first ↵Gravatar brain2006-08-011-18/+18
| | | | | | step on the road to ipv6 support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7
* Add comments, remove debug, alter message in ./configureGravatar brain2006-07-201-12/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4466 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed, no longer a memory leak (Thread leak)Gravatar brain2006-07-201-17/+51
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4465 e03df62e-2008-0410-955e-edbf42e46eb7
* Someone please take a look at this and tell me why a thread doesnt free ↵Gravatar brain2006-07-201-1/+1
| | | | | | itself like it should when it exits, freeing the ram git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4462 e03df62e-2008-0410-955e-edbf42e46eb7