Changeset 1321
- Timestamp:
- 12/06/08 20:44:36 (4 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
notify.cc (modified) (1 diff)
-
packethandler.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/notify.cc
r1275 r1321 28 28 throw runtime_error("Creating socket for incoming packets: "+stringerror()); 29 29 30 ComboAddress pdns("127.0.0.1", 53); 30 ComboAddress local("127.0.0.1", (int)0); 31 if(::bind(sock, (struct sockaddr*) &local, local.getSocklen()) < 0) 32 throw runtime_error("Failed to bind local socket to address "+local.toString()+": "+stringerror()); 33 34 ComboAddress pdns(argv[1], 53); 31 35 if(connect(sock, (struct sockaddr*) &pdns, pdns.getSocklen()) < 0) 32 36 throw runtime_error("Failed to connect PowerDNS socket to address "+pdns.toString()+": "+stringerror()); 33 37 34 38 vector<uint8_t> outpacket; 35 DNSPacketWriter pw(outpacket, argv[ 1], QType::SOA, 1, Opcode::Notify);39 DNSPacketWriter pw(outpacket, argv[2], QType::SOA, 1, Opcode::Notify); 36 40 pw.getHeader()->id = random(); 37 41 -
trunk/pdns/pdns/packethandler.cc
r1302 r1321 455 455 DNSBackend *db; 456 456 if(!B.superMasterBackend(p->getRemote(), p->qdomain, nsset, &account, &db)) { 457 L<<Logger::Error<<"Unable to find backend willing to host "<<p->qdomain<<" for potential supermaster "<<p->getRemote()<<endl;457 L<<Logger::Error<<"Unable to find backend willing to host "<<p->qdomain<<" for potential supermaster "<<p->getRemote()<<endl; 458 458 return RCode::Refused; 459 459 }