Changes between Version 5 and Version 6 of DnsResolution


Ignore:
Timestamp:
2009-06-06 18:26:45 (11 years ago)
Author:
speck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DnsResolution

    v5 v6  
    1515You can change the DNS server in the network proxy Javascript (case 3 on the proxy page) and in request modification scripts (case 4).
    1616
    17 The DNS server is specified by assigning a comma/semicolon/whitespace separated list of ip numbers to the {{{gb.dnsServers}}} variable.  Just like {{{gb.proxy}}} it is initially empty in the global script, and in request-specific scripts it is initialized to the global value.
     17The DNS server is specified by assigning a comma/semicolon/whitespace separated list of ip numbers to the {{{gb.network.dnsServers}}} variable.
     18Just like {{{gb.network.proxy}}} it is initially empty in the global script, and in request-specific scripts it is initialized to the global value.
    1819
    1920=== Examples ===
     
    2324#!js
    2425if (gb.network.interfaces.en1.AirPort.ssid == 'The Great University')
    25   gb.dnsServers = "208.67.222.222 , 208.67.220.220";
     26  gb.network.dnsServers = "208.67.222.222 , 208.67.220.220";
    2627}}}
    2728