Cannot connect to local PC via it's name when using CloudFlare DNS


#1

Hello,

I use a Mac and using Microsoft Remote Desktop to connect to my home PC on my local home network.

On the Mac, I have changed my DNS Server to CloudFlare’s 1.1.1.1 (etc). This way, however, I am not able to access my PC using it’s name. I have to access it using it’s IP address. This is no good since the local IP is constantly changing, so each time I have to login to my router, get the PC’s IP and use that to connect.

Using the default 192.168.1.1 of course, have no issues accessing the PC via it’s name.

Is there anything I can do (and if so what) to use CloudFlare’s DNS but at the same time be able to access the PC on my local network via it’s name?

Thanks!


#2

The issue here is that the local router maintains a list of local DNS addresses, 1.1.1.1 doesn’t have access to those.

The only solution would be to either map local IPs to a domain globally accessible (if 1.1.1.1 supports replies with those addresses, but it should work) or make the router make requests to 1.1.1.1 and the local machines go to the router.


#3

Thank you for the reply. This sounds complicated, so I think I just leave this alone as is.


#4

Nothing complicated in the second alternative, unless you are using a router that doesn’t support custom DNS servers or you are using a DNS-over-HTTPS/DNS-over-TLS setup.

Open your router, set it to use 1.1.1.1 and 1.0.0.1 (and possibly IPv6 if you use it) and then allow all network computers to use the router at 192.168.1.1 (for your case, can be anything you decide it to be) as DNS just like before.