Changeset 1051
- Timestamp:
- 05/19/07 13:14:07 (3 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 4 modified
-
dnsparser.cc (modified) (2 diffs)
-
packethandler.cc (modified) (2 diffs)
-
qtype.hh (modified) (1 diff)
-
receiver.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsparser.cc
r1050 r1051 1 1 /* 2 2 PowerDNS Versatile Database Driven Nameserver 3 Copyright (C) 2005 - 200 6PowerDNS.COM BV3 Copyright (C) 2005 - 2007 PowerDNS.COM BV 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 206 206 vector<unsigned char> record; 207 207 validPacket=true; 208 for(n=0;n < d_header.ancount + d_header.nscount + d_header.arcount; ++n) {208 for(n=0;n < (unsigned int)(d_header.ancount + d_header.nscount + d_header.arcount); ++n) { 209 209 DNSRecord dr; 210 210 -
trunk/pdns/pdns/packethandler.cc
r1036 r1051 67 67 { 68 68 // nobody reads what we output, but it appears to be the magic that shuts some nameservers up 69 static c har*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", "192.112.36.4", "128.63.2.53",69 static const char*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", "192.112.36.4", "128.63.2.53", 70 70 "192.36.148.17","192.58.128.30", "193.0.14.129", "198.32.64.12", "202.12.27.33"}; 71 71 static char templ[40]; … … 613 613 } 614 614 615 // please don't query fancy records directly! 616 if(d_doFancyRecords && (p->qtype.getCode()==QType::URL || p->qtype.getCode()==QType::CURL || p->qtype.getCode()==QType::MBOXFW)) { 617 r->setRcode(RCode::ServFail); 618 return r; 619 } 620 615 621 bool found=false; 616 622 -
trunk/pdns/pdns/qtype.hh
r990 r1051 73 73 static int chartocode(const char *p); //!< convert a character string to a code 74 74 75 enum typeenum {A=1,NS=2,CNAME=5,SOA=6, MR=9, PTR=12,HINFO=13,MX=15,TXT=16,RP=17,AFSDB=18,KEY=25,AAAA=28,LOC=29,SRV=33,NAPTR=35, SPF=99, AXFR=252, IXFR=251, ANY=255 } types;75 enum typeenum {A=1,NS=2,CNAME=5,SOA=6, MR=9, PTR=12,HINFO=13,MX=15,TXT=16,RP=17,AFSDB=18,KEY=25,AAAA=28,LOC=29,SRV=33,NAPTR=35, SPF=99, AXFR=252, IXFR=251, ANY=255, URL=256, MBOXFW=257, CURL=258} types; 76 76 private: 77 77 short int code; -
trunk/pdns/pdns/receiver.cc
r1049 r1051 67 67 string s_programname="pdns"; // used in packethandler.cc 68 68 69 c har *funnytext=69 const char *funnytext= 70 70 "*****************************************************************************\n"\ 71 71 "Ok, you just ran pdns_server through 'strings' hoping to find funny messages.\n"\