aboutsummaryrefslogtreecommitdiffstats
path: root/src/dnsqueue.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-07-19 21:47:03 +0000
committerGravatar brain2006-07-19 21:47:03 +0000
commit731703c91b3c5823f56a84bc3352dd3682678bbb (patch)
tree5b29a27a00891309cd263f5902259438fae54bb8 /src/dnsqueue.cpp
parentStability fix (diff)
Same here, remove the lastcreate craq
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4455 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r--src/dnsqueue.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 18ef2fbb7..ff18baf75 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -117,6 +117,7 @@ public:
{
dnslist[resolver2.GetFD()] = NULL;
std::string ip = resolver2.GetResultIP();
+ log(DEBUG,"Got IP %s",ip.c_str());
usr = Find(u);
if (usr)
{
@@ -129,6 +130,7 @@ public:
{
if ((std::string(inet_ntoa(usr->ip4)) == ip) && (hostname.length() < 65))
{
+ log(DEBUG,"POS2");
if ((hostname.find_last_of(".in-addr.arpa") == hostname.length() - 1) && (hostname.find_last_of(".in-addr.arpa") != std::string::npos))
{
WriteServ(usr->fd,"NOTICE Auth :*** Your ISP are muppets -- reverse resolution resolves back to same reverse .arpa domain (!)");
@@ -186,18 +188,25 @@ public:
usr->dns_done = true;
return true;
}
- if (hostname != "")
+ }
+ if (hostname != "")
+ {
+ log(DEBUG,"Begin fwd lookup on '%s'",hostname.c_str());
+ resolver2.ForwardLookup(hostname);
+ //log(DEBUG,"Begin fwd lookup on '%s'",hostname.c_str());
+ if (resolver2.GetFD() != -1)
{
- resolver2.ForwardLookup(hostname);
- if (resolver2.GetFD() != -1)
- {
- dnslist[resolver2.GetFD()] = this;
- if (usr)
- user_fd_to_dns[usr->fd] = this;
- }
+ log(DEBUG,"Set dns lookup pointers");
+ dnslist[resolver2.GetFD()] = this;
+ if (usr)
+ user_fd_to_dns[usr->fd] = this;
}
}
}
+ else
+ {
+ log(DEBUG,"Resolver1 fd is -1");
+ }
}
}
return false;