UDPNameserver *N;
int avg_latency;
TCPNameserver *TN;
-SyncresCommunicator* SRC;
ArgvMap &arg()
{
if(arg().mustDo("slave") || arg().mustDo("master"))
Communicator.go();
- SRC=new SyncresCommunicator();
-
if(TN)
TN->go(); // tcp nameserver launch
extern PacketCache PC;
extern CommunicatorClass Communicator;
extern DNSProxy *DP;
-extern SyncresCommunicator* SRC;
int PacketHandler::s_count;
extern string s_programname;
DNSResourceRecord rr;
if (p->qclass == 3 && p->qtype.getName() == "HINFO") {
- rr.content = "PowerDNS $Id: packethandler.cc,v 1.5 2003/01/13 15:39:17 ahu Exp $";
+ rr.content = "PowerDNS $Id: packethandler.cc,v 1.6 2003/01/13 23:36:50 ahu Exp $";
rr.ttl = 5;
rr.qname=target;
rr.qtype=13; // hinfo
{
DNSResourceRecord rr;
if(p->qtype.getCode()==QType::TXT && target=="version.bind") {// TXT
- rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.5 2003/01/13 15:39:17 ahu Exp $";
+ rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.6 2003/01/13 23:36:50 ahu Exp $";
rr.ttl=5;
rr.qname=target;
rr.qtype=QType::TXT; // TXT
if(doVersionRequest(p,r,target)) // catch version.bind requests
goto sendit;
- if(p->d.rd) {
- SRC->giveQuestion(p);
- return 0;
- }
// now we start doing things
// if the packet wants to be recursed, and we do recursion (but not lazy recursion!), hand it off