I use 4x IPFire firewalls with different internet connections for my network. To access some cloud services (https) via a dedicated internet connection (IPFire-B), I use static routes on my client’s standard gateway (IPFire-A). This redirects this data traffic to the intended IPFire-B.
Unfortunately, the cloud service provider does not use a static IP. He only offers domains for his services. This means I have to change the static routes from time to time. That sucks …
Does IPFire offer a solution or trick for domain based routing without using IP addresses?
there is no such service, but that sounds like you could easily write a shell script that does this, and execute it via a Cron job every five minutes or so.
Domain-based routing is tricky indeed, especially because DNS can be relatively nondeterministic (multiple A records, resolving operations fail, etc.), and unless the FQDN in question is DNSSEC-signed, you cannot trust the data. I have seen some proprietary vendors implementing domain-based routing or even firwalling, but usually hurt more than it helped.