failover script without public ip on the mikrotik

My gateways are both local IPs…
192.168.0.1
192.168.1.1

I use the following script
:if ([/ping 8.8.8.8 count=4 interface=ether1] = 0) do={/ip route set distance=3 number=[find comment=telenet]} else={/ip route set distance=1 number=[find comment=telenet]}

it hops to WAN2 correctly but the it won’t connect back to WAN1 even when the internet is back since

/ping 8.8.8.8 interface=ether1
fails when the WAN2 has the priority
How can I ping via the WAN1 when the route priority is set to WAN2 ?

why do u use script?

just use route

/ip route
add check-gateway=ping distance=1 gateway=8.8.8.8
add check-gateway=ping distance=2 gateway=8.8.4.4
add distance=2 dst-address=8.8.4.4/32 gateway=192.168.1.1 scope=10
add distance=1 dst-address=8.8.8.8/32 gateway=192.168.0.1 scope=10

in this case which dns should I select? The mikrotik cannot use 8.8.8.8 via the second line or 8.8.4.4 via the first line with this config?
I guess I would need 2 IPs other than 8.8.8.8 8.8.4.4 to use them as a check gateway