Does anyone knnow if this is possible? I have DDNS setup and working fine. I then reference in my destination nat statement the hostname (SRX then resolves the IP) and the puts the IP address in the destination-nat field
When the IP changes, DDNS works, but the destination nat IP remains the same.
Is there a solution to fix this?
The easiest method I know is specifying 0.0.0.0/0 as destination-address in the DNAT rule. That way traffic to any IP matches the rule, that works fine if you have only one public IP address, which is typically the case if you use DDNS.