1

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?

2
  • What VPN are you using? The VPN may be using its own DNS.
    – David
    Oct 3, 2022 at 8:12
  • I use an L2TP connection, I set up a VPN on my ZYXEL router and added this record on this router. Oct 3, 2022 at 8:16

1 Answer 1

2

http://, and its encrypted variation https://, is a protocol prefix for the Hypertext Transfer Protocol or HTTP. It doesn't belong to the Domain Name System or DNS, to a hosts file or any other way of name resolution.

Therefore, the entry in your /etc/hosts needs to be something like

192.168.1.10    inventory.local

There may be additional problems, but a http:// prefix doesn't belong in a hosts file in any case ;)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .