Show
Ignore:
Timestamp:
06/06/06 21:55:28 (7 years ago)
Author:
ahu
Message:

add ignore-rd-bit for compatability with some load balancers - PowerDNS does not consult its forwarder servers for non-rd queries, this is a quick workaround

Files:
1 modified

Legend:

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

    r843 r844  
    8181g_tcpListenSockets_t g_tcpListenSockets; 
    8282int g_tcpTimeout; 
     83bool g_ignoreRD; 
    8384 
    8485struct DNSComboWriter { 
     
    497498 
    498499    sr.setId(MT->getTid()); 
    499     if(!dc->d_mdp.d_header.rd) 
     500    if(!dc->d_mdp.d_header.rd && !g_ignoreRD) 
    500501      sr.setCacheOnly(); 
    501502 
     
    14561457    g_quiet=false; 
    14571458  } 
     1459 
     1460  g_ignoreRD=::arg().mustDo("ignore-rd-bit"); 
    14581461 
    14591462  RC.d_followRFC2181=::arg().mustDo("auth-can-lower-ttl"); 
     
    16671670    ::arg().set("serve-rfc1918", "If we should be authoritative for RFC 1918 private IP space")=""; 
    16681671    ::arg().set("auth-can-lower-ttl", "If we follow RFC 2181 to the letter, an authoritative server can lower the TTL of NS records")="off"; 
     1672    ::arg().setSwitch( "ignore-rd-bit", "Assume each packet requires recursion, for compatability" )= "off";  
    16691673 
    16701674    ::arg().setCmd("help","Provide a helpful message");