I have A
record that has both external
IP address (1.2.3.4
), and internal
(192.168.10.20
) one.
When a client wants to connect to this service from the network 192.168.10/24
- it should use 192.168.10.20
one as a target.
If the client is in a different network - then 1.2.3.4
should be used.
I know that for IPv6 there is the address priority resolution, but can I achieve something similar for IPv4?