Forward traffic for IP x to IP y

Hello

I’m struggling to implement the following on my Mikrotik:

Any traffic destined for IP address x must go to IP address y.

It’s a DNS server in particular, the firmware of the device is hard coded with IP address x and I need to make sure that when DNS lookups happen it is done to IP address y.

Hope that someone can help!

It depends on your network topology, but maybe dstnat is an option

Yeah I thought that it may be dstnat and have tried the following unsuccessfully:

 ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic 
 0   ;;; default configuration
     chain=srcnat action=masquerade to-addresses=0.0.0.0 

1   chain=dstnat action=dst-nat to-addresses=196.46.185.44 dst-address=8.8.8.8

As far as topology goes, it’s a very simple network with a single gateway connecting the devices on the internal network to the internet doing masquerading with srcnat

I assume the ip addresses should be swapped. Can you explain what you want.