Sometimes it is necessary to recognize the remote device that is connected
through a public IP network. This can be done by querying and comparing the
remote device's domain name system (DNS) based name with its IP address.
Host-resolve queries to both directions can be done using the generic interface
class RHostResolver. However, this is not a secure way to authenticate remote devices,
because some clients may not have DNS names at all (for example, in a local
network). For reliable authentication and secure communication, stronger methods
like key exchange or secure protocol solutions are preferable. See, for example, Diffie-Hellman key exchange for
more information.