You can edit /usr/local/www/system.php to allow for more DNS servers.
I did this on pfsense 2.1.5-RELEASE (amd64)

increase the list

list($pconfig['dns1'],$pconfig['dns2'],$pconfig['dns3'],$pconfig['dns4'],
$pconfig['dns5'],$pconfig['dns6'],$pconfig['dns7'],$pconfig['dns8'])
= $config['system']['dnsserver'];

add these below the others just like them

$pconfig['dns5gw'] = $config['system']['dns5gw'];
$pconfig['dns6gw'] = $config['system']['dns6gw'];
$pconfig['dns7gw'] = $config['system']['dns7gw'];
$pconfig['dns8gw'] = $config['system']['dns8gw'];

increase ALL for loop counters referencing dnscounter<5 there are four
occurrences of them

for ($dnscounter=1; $dnscounter<9; $dnscounter++){

add these below the others just like them

                if ($_POST['dns5'])
                        $config['system']['dnsserver'][] = $_POST['dns5'];
                if ($_POST['dns6'])
                        $config['system']['dnsserver'][] = $_POST['dns6'];
                if ($_POST['dns7'])
                        $config['system']['dnsserver'][] = $_POST['dns7'];
                if ($_POST['dns8'])
                        $config['system']['dnsserver'][] = $_POST['dns8'];


then save and go add the DNS servers

and your done
they really should just put a button on this page to "Add More Dns"
I had to do this since we are using 3 wans and are utilizing route grouping
for failover on a pair of HA routers for several 24/7 live video and audio
streams and best practices is to have two dns servers binded to each
gateway. This allowed me to us all the DNS provided by our ISPs and 2 more
for openDNS fallback that are not bound to any specific gateway.






_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold

Reply via email to