I have a local server 192.168.1.10 (I attached DNS record locally to HTTP://inventory.local) In the local network I use this service perfectly.
Today, I decided to connect to the local network via VPN, and unfortunately, I got the error: DNS_PROBE_FINISHED_NXDOMAIN. I add the DNS record to /etc/hosts:
192.168.1.10 http://inventory.local
It does not solve the issue, but I can ping IP 192.168.1.10 and host http://inventory.local. In my case browser can't use this record.
How to configure ubuntu to use a local site via VPN?
http://
, and its encrypted variationhttps://
, is a protocol prefix for the Hypertext Transfer Protocol orHTTP
. It doesn't belong to the Domain Name System orDNS
, to a hosts file or any other way of name resolution.Therefore, the entry in your
/etc/hosts
needs to be something likeThere may be additional problems, but a
http://
prefix doesn't belong in ahosts
file in any case ;)