Changeset 1430
- Timestamp:
- 10/11/09 19:13:59 (10 months ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 3 modified
-
pdns_recursor.cc (modified) (2 diffs)
-
syncres.cc (modified) (2 diffs)
-
syncres.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r1426 r1430 1849 1849 1850 1850 SyncRes::s_noEDNSPing = ::arg().mustDo("disable-edns-ping"); 1851 SyncRes::s_noEDNS = ::arg().mustDo("disable-edns"); 1851 1852 1852 1853 SyncRes::s_maxnegttl=::arg().asNum("max-negative-ttl"); … … 2143 2144 ::arg().set("lua-dns-script", "Filename containing an optional 'lua' script that will be used to modify dns answers")=""; 2144 2145 ::arg().setSwitch( "ignore-rd-bit", "Assume each packet requires recursion, for compatability" )= "off"; 2145 ::arg().setSwitch( "disable-edns-ping", "Disable EDNSPing" )= ""; 2146 ::arg().setSwitch( "disable-edns-ping", "Disable EDNSPing" )= "no"; 2147 ::arg().setSwitch( "disable-edns", "Disable EDNS" )= ""; 2146 2148 2147 2149 ::arg().setCmd("help","Provide a helpful message"); -
trunk/pdns/pdns/syncres.cc
r1423 r1430 68 68 SyncRes::throttle_t SyncRes::s_throttle; 69 69 bool SyncRes::s_noEDNSPing; 70 bool SyncRes::s_noEDNS; 70 71 71 72 /** everything begins here - this is the entry point just after receiving a packet */ … … 244 245 If '4', send bare queries 245 246 */ 247 248 if(s_noEDNS) { 249 g_stats.noEdnsOutQueries++; 250 return asyncresolve(ip, domain, type, doTCP, sendRDQuery, 0, now, res); 251 } 246 252 247 253 SyncRes::EDNSStatus* ednsstatus; -
trunk/pdns/pdns/syncres.hh
r1427 r1430 358 358 359 359 static bool s_noEDNSPing; 360 static bool s_noEDNS; 360 361 361 362 struct AuthDomain