Defining a seperate DNS server for each interface
Alright, I have dual-WAN and setup failover. I also have a segment of my network using the WAN connection and another segment using the OPT1 connection by creating firewall rules. That is working great, except one major issue: It seems like all the DNS lookups are going out through WAN. Both connections need to use OpenDNS for the DNS server, but I want the requests to be sent out through the appropriate public IP.
Basically, I want to have different OpenDNS settings for the WAN IP vs the OPT1 IP. To do this, the dns requests cant all come from WAN! Any ideas?
I may have misunderstood what you are trying to acheive, here is how I understand it.
Host A on local network goes through WAN interface and sees OpenDNS setting apprioriate for WAN derived traffic.
Host B on local network goes through Opt1 interface and sees OpenDNS setting apprioriate for Opt1 derived traffic.
How I would acheive this first I would switch off the PFsense DNS forwarder.
next I would add the OpenDNS server IPs either statically or through DHCP to the end hosts.
Then have rules that constrain traffic for each host goes through which WAN.
You can still use failover if you wish to provide it for any services that do not require DNS lookups for initiation or during use, such as MSN, games etc….
If you have a lot of hosts I would go one step further and create an Alias list for the two groups and pop in the hosts that you want in each list.