Changeset 1430

Show
Ignore:
Timestamp:
10/11/09 19:13:59 (10 months ago)
Author:
ahu
Message:

disable EDNS by default - delivers nothing but trouble..

Location:
trunk/pdns/pdns
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdns_recursor.cc

    r1426 r1430  
    18491849   
    18501850  SyncRes::s_noEDNSPing = ::arg().mustDo("disable-edns-ping"); 
     1851  SyncRes::s_noEDNS = ::arg().mustDo("disable-edns"); 
    18511852 
    18521853  SyncRes::s_maxnegttl=::arg().asNum("max-negative-ttl"); 
     
    21432144    ::arg().set("lua-dns-script", "Filename containing an optional 'lua' script that will be used to modify dns answers")=""; 
    21442145    ::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" )= "";  
    21462148 
    21472149    ::arg().setCmd("help","Provide a helpful message"); 
  • trunk/pdns/pdns/syncres.cc

    r1423 r1430  
    6868SyncRes::throttle_t SyncRes::s_throttle; 
    6969bool SyncRes::s_noEDNSPing; 
     70bool SyncRes::s_noEDNS; 
    7071 
    7172/** everything begins here - this is the entry point just after receiving a packet */ 
     
    244245     If '4', send bare queries 
    245246  */ 
     247 
     248  if(s_noEDNS) { 
     249    g_stats.noEdnsOutQueries++; 
     250    return asyncresolve(ip, domain, type, doTCP, sendRDQuery, 0, now, res); 
     251  } 
    246252 
    247253  SyncRes::EDNSStatus* ednsstatus; 
  • trunk/pdns/pdns/syncres.hh

    r1427 r1430  
    358358 
    359359  static bool s_noEDNSPing; 
     360  static bool s_noEDNS; 
    360361 
    361362  struct AuthDomain