Changeset 697 for trunk/pdns/pdns/pdns_recursor.cc
- Timestamp:
- 04/14/06 10:39:16 (4 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/pdns_recursor.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r696 r697 726 726 ::arg().set("aaaa-additional-processing","turn on to do AAAA additional processing (slow)")="off"; 727 727 ::arg().set("local-port","port to listen on")="53"; 728 ::arg().set("local-address","IP addresses to listen on, separated by spaces or commas")=" 0.0.0.0";728 ::arg().set("local-address","IP addresses to listen on, separated by spaces or commas")="127.0.0.1"; 729 729 ::arg().set("trace","if we should output heaps of logging")="off"; 730 730 ::arg().set("daemon","Operate as a daemon")="yes"; … … 742 742 ::arg().set("hint-file", "If set, load root hints from this file")=""; 743 743 ::arg().set("max-cache-entries", "If set, maximum number of entries in the main cache")="0"; 744 ::arg().set("allow-from", "If set, only allow these comma separated netmasks to recurse")=" ";744 ::arg().set("allow-from", "If set, only allow these comma separated netmasks to recurse")="127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12"; 745 745 ::arg().set("max-tcp-per-client", "If set, maximum number of TCP sessions per client (IP address)")="0"; 746 746 ::arg().set("fork", "If set, fork the daemon for possible double performance")="no"; … … 943 943 memcpy(&dh, data, sizeof(dh)); 944 944 945 if(dh.qr ) {945 if(dh.qr && dh.qdcount) { 946 946 pident.remote=fromaddr; 947 947 pident.id=dh.id; … … 950 950 if(!MT->sendEvent(pident, &packet)) { 951 951 if(logCommonErrors) 952 L<<Logger::Warning<<"Discarding unexpected packet from "<<sockAddrToString((struct sockaddr_in*) &fromaddr, addrlen)<< "\n";953 g_stats. spoofedCount++;952 L<<Logger::Warning<<"Discarding unexpected packet from "<<sockAddrToString((struct sockaddr_in*) &fromaddr, addrlen)<<endl; 953 g_stats.unexpectedCount++; 954 954 } 955 955 }