Redirect external address to a different local IP if external address fails?DNS
-
Hello all,
I have a local network running PFSense freebsd as my router/firewall. I have SIP phones pointed at a FQDN sitting on the cloud. I also have a local SIP controller as a failover device if my cloud controller fails. I am trying to set up my DNS so if my SIP phones pointed at sip.example.com fail to register remotely then they are redirected to a static IP on the LAN. I also need to find a way to have my DNS constantly updating or looking for the cloud controller to come back up and when it does to default back to that url.
Im trying to contain all of this within PFSense if possible.
Metaphor/Relation idea…
I'm thinking of it kind of like a dual fail over WAN where WAN is prioritized as Tier1 and OPT1 (Second WAN) is Tier 2. So Tier 1 would be the primary and Tier 2 would be the fail over, but its always looking to reconnect to that Tier 1 when available.
Does this exist, if so what is it called and where do i start?\
Example:
SIP Phone set host to sip.example.com (External address)
If host returns unable to reach then have a DNS reroute to the local controller by IP 192.168.1.50(SIP Controller Static)
In addition have the some kind of recheck to see if sip.example.com is back up and if it is go back to that external address.