Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
0 answers
38 views

Hostnames are not resolved when i turn on Strongswan VPN ubuntu 22.04

I have created a connection on my VPS: nmcli connection add type vpn vpn-type strongswan con-name "vpn" ifname "*" vpn.data "address=<ADDRESS>, certificate-ignore=yes, ...
Александр Журило's user avatar
0 votes
0 answers
42 views

NetworkManager rewrites name servers in config file

I have a wifi network connection that has a config file /etc/NetworkManager/system-connections/MyNetwork.nmconnection Name resolving did not work, so I added my provider's name servers. But upon ...
Gergely's user avatar
  • 125
0 votes
0 answers
36 views

local DNS server for dns caching OpenVPN clients

i have two servers. One in the netherlands and one on australia. They are connected to each other over vpn. When a client connects to the australian server there is the netherlands dns server provided ...
Chris's user avatar
  • 1
0 votes
1 answer
196 views

Can't connect to certain website when connect to VPN

please edit my text: Here is my current operating system: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal ...
Muhammad Fhadli's user avatar
0 votes
0 answers
92 views

DNS with VPN problem

I've been facing issues accessing company websites with the VPN and company DNS configurations set up. Access can be gained by manually adding entries to the /etc/hosts file but im looking for better ...
Daniel's user avatar
  • 1
0 votes
0 answers
383 views

Adapt systemd-resolve command to resolvectl

I upgraded my ubuntu to 22.04 and a script that routes the traffic of my work vpn is not working properly since it uses a systemd-resolve command. How I use the script: I manually execute a script (...
Naxxio's user avatar
  • 1
0 votes
0 answers
88 views

Ubuntu hosting VPN for personal VPN network

This is probably a simple solution and I am missing something but I have a home network that does not have a static IP and I have a domain controller and a samba share on that DC, I want to be able to ...
Ryan Vogel's user avatar
1 vote
1 answer
858 views

Ubuntu 23.04 resets to wrong dns server on startup

I've had this problem since updating to 23.04. When Ubuntu reboots it reboots to the DNS server of Proton VPN. I tried this solution: Internet connection only work when i use vpn! ubuntu 22.10 which ...
Almost Aiming's user avatar
4 votes
4 answers
30k views

How can I force Ubuntu 22.04 SERVER to use ONLY the DNS servers listed in /etc/systemd/resolved.conf (NOT my router's DNS) AND use DNS-over-TLS?

I have added these lines to /etc/systemd/resolved.conf in a Ubuntu 22.04 SERVER install with NO DESKTOP - I emphasize that because I can't use the normal desktop method of setting network options in ...
UbuntuUser's user avatar
0 votes
2 answers
867 views

Internet connection only work when i use vpn! ubuntu 22.10

Hey there i was i am using Ubuntu 22.10 and its my first time using it. my WiFi seems to be workingfine and i wanted to install proton vpn and after using it for a while i disconnected and it seems to ...
Simon Asnake's user avatar
0 votes
0 answers
64 views

How to prevent all domain names except one domain?

I have a server that my users connect to for internet browsing. I want my users can only access a website like domain.com but nothing else. This website is behind Cloudflare CDN. So I can't block the ...
Afshin's user avatar
  • 523
0 votes
2 answers
785 views

Generate iptables rules while connecting to VPN Server

I'm building a virtual Ubuntu Server(LXC on Proxmox) that shall act as router and tunnel some devices(e.g. AppleTV) of my local network through a VPN (expressVPN). Connecting and routing to different ...
Michael's user avatar
0 votes
2 answers
2k views

Ubuntu 22.04.1 LTS: DNS address could not be found DNS_PROBE_POSSIBLE

so I am new to ubuntu and while trying to connect to any website or even do a simple search I get this error of DNS address could not be found DNS_PROBE_POSSIBLE. I was using proton vpn before but ...
Electronzy's user avatar
0 votes
1 answer
218 views

How can I script changing DNS settings for my WiFi connection on startup?

My VPN software (Forticlient) breaks DNS and I get that question mark over the WiFi symbol and no internet. I can fix it by deleting all the DNS IPs, setting DNS to auto and restarting networking. I ...
Ninja Chris's user avatar
0 votes
1 answer
128 views

School Wifi Speed is good but it takes extremely long to make a connection to webpage

When I connect to on-campus WiFi, it take about 30 seconds to load a page; however, there is some odd behaviour. For example, It take 30 seconds to load Facebook, but once I have Facebook loaded, ...
theEconCsEngineer's user avatar
5 votes
1 answer
12k views

Ubuntu 22.04 - VPN's DNS server not used for resolving addresses

I'm using Ubuntu 22.04 and I've been trying to make VPN connection work next to my normal network. I'd like to route traffic through VPN only for its network (selected "Use this connection only ...
Adrian's user avatar
  • 141
1 vote
1 answer
234 views

Why is Ubuntu 20.04.3 internet access not working?

My Ubuntu OS is connected to the my working internet network, but any internet-reliant services have not been functioning properly. This includes downloading anything (including any packages from the ...
Questionable's user avatar
1 vote
0 answers
439 views

Ubuntu 21.10 VPN disconnection does not revert back to original DNS server in /etc/resolv.conf

When I disconnect from my company's VPN in Ubuntu 21.10 (using Gnome GUI for VPN connect/disconnect), I do not have previous DNS server entries in /etc/resolv.conf. Can anybody help sorting this issue ...
user241281's user avatar
4 votes
2 answers
34k views

How to fix WSL domain resolution

so I was having issues with domain resolution with WSL whenever I use the VPN. I would get this: ping: google.com: Temporary failure in name resolution I tried following instructions from these ...
Morgan Soren's user avatar
0 votes
0 answers
1k views

OpenVPN and DNS error

I'm using Ubuntu18.04.6, OpenVPN 2.5.2. I connect using .ovpn file: sudo openvpn --config name.ovpn I am getting errors: Options error: Unrecognized option or missing or extra parameter(s) in [...
Fedor March's user avatar
0 votes
0 answers
373 views

How to fix No ethernet and no WiFi working on Ubuntu 20.04

I was performing a DNS Lookup using a custom .c file i've written (while on a VPN) and suddenly I lost internet connection and I can't even access the WiFi settings. I've also tried connecting to ...
alexandrosangeli's user avatar
1 vote
1 answer
3k views

Ubuntu 20.04 Network Manager Wireguard DNS Leak

I added my Peer-Config from Wireguard to Network Manager manually: [Interface] Address = 10.13.13.5 PrivateKey = key ListenPort = 51820 DNS = 10.13.13.1, lan [Peer] PublicKey = key Endpoint = ...
steelmann's user avatar
0 votes
0 answers
190 views

Required to call `systemd-resolve` each time I connect to VPN

Whenever I connect to a VPN using OpenVPN I have to run the following command or I cannot access some websites: sudo systemd-resolve --set-dns=1.1.1.1 --interface=wlp111s0 Is there a way to ...
Fred's user avatar
  • 101
0 votes
0 answers
173 views

DNS Error after the crash of VPN and the file get's over written

I was using a proton VPN for some purpose of testing and Due to some reason I needed to shut down my laptop as it was stuck(Hang) and as I restarted My laptop I opened a browser to resume my work and ...
spicysalt's user avatar
0 votes
0 answers
87 views

help with dns name conflict vpn and docker

I need to access an url via VPN, (estrelaoriente.com) but seems it is conflicting with an docker route (docker.amazee.io): ~$ ping estrelaoriente.com PING estrelaoriente.com.docker.amazee.io (127.0.0....
Bruno Colaço's user avatar
4 votes
1 answer
3k views

Problem with DNS resolution when NOT connected to VPN Ubuntu 20.04

When I try to access a website it doesn't work anymore and just tells me "DNS_PROBE_POSSIBLE" unless I am connected to a VPN (Proton VPN) then the internet works fine. After some digging ...
Clément's user avatar
  • 151
1 vote
0 answers
369 views

/etc/resolv.conf not getting properly regenerated after VPN disconnect

I'm running Ubuntu 20.04.3 LTS. After booting, and before connecting to my VPN, my /etc/resolv.conf looks like this: # This file is managed by man:systemd-resolved(8). Do not edit. # # This is a ...
AndyL's user avatar
  • 111
1 vote
0 answers
320 views

Problem with reaching websites on browser after establishing vpn by openconnect

I used openconnect in terminal for connecting to server. The connection established. I can ping any websites. It looks good for everything. But in Chrome and Firefox I couldn't access to websites. All ...
HFDev's user avatar
  • 33
0 votes
0 answers
1k views

Cannot reach DNS server when connected to VPN

When I connect to my work network over VPN, I gain access to the work network and can SSH to the servers, but lose access to the internet on my local machine. I believe this to be an issue in finding ...
FinleyGibson's user avatar
0 votes
1 answer
1k views

how to clear dns cache on vpn connection?

After connecting to my customer's VPN, I need to issue this command: service nscd reload Or wait for some time before I can access internal services. How can I make this happen automatically?
ymajoros's user avatar
  • 133
0 votes
1 answer
460 views

New openvpn server clients can ping layer 2 but not layer 3 (DNS)

I am trying to configure a new openvpn server and my clients can connect to the server, ping 4.2.2.2, but fails at layer 3 (DNS). error: ping google.com temporary failure in name resolution server ...
brad's user avatar
  • 160
5 votes
3 answers
10k views

Ubuntu keeps changing my DNS to 127.0.0.53

I installed expressvpn with Chrome extension. And even when I disable the VPN my system keeps changing my DNS to 127.0.0.53 and I have to manually change it back to 192.168.1.1 for internet to work. ...
martins16321's user avatar
0 votes
0 answers
2k views

How to fix DNS leak OpenVPN on Ubuntu 20.04?

Okay, so basically I am using openvpn to connect on one of the NordVPN's servers. But long story short, I haven't even noticed all until this night, my DNS is leaking somehow. My sys. info: str1ng@...
str1ng's user avatar
  • 155
2 votes
1 answer
2k views

Proxy failing because system resolves it using local DNS instead of VPN (Ubuntu 20.04)

I am using an VPN over openconnect through NetworkManager. I also have a proxy server whose configuration is reachable via VPN (at http://wpad/wpad.dat). Sporadically, when I connect to VPN it fails ...
MattDs17's user avatar
1 vote
0 answers
170 views

How can I tell what app, script, or service is responsible for changing resolv.conf?

I am aware that DNS and other name resolution is controlled most proximately by /etc/resolv.conf, and that resolvconf / resolvectl / systemd-resolve is most proximately responsible for the contents of ...
Charles's user avatar
  • 111
1 vote
1 answer
100 views

Wi-Fi router gateway IP adding as nameserver IP in resolv.conf only works for Pulse secure VPN connectivity

I am using Ubuntu 18.04.5 LTS and trying to connect Pulse secure VPN with default nameserver entries in below resolv.conf file, but unable to connect, it gets connected for second or 2 seconds and ...
Meghraj's user avatar
  • 11
1 vote
0 answers
904 views

networkmanager and dns resolution

I would like to understand how DNS resolution works on my machine. I am using Ubuntu 20.04.2 LTS (Focal Fossa). My network connection is set up via NetworkManager: $ cat /etc/NetworkManager/...
fradeco's user avatar
  • 71
0 votes
0 answers
77 views

Abnormal DNS output

Why does dnsleaktest.com find previous DNS address/multiple new DNS addresses? Now I decided to try a new one and to my surprise the dnsleaktest.com gives me three diferent outputs as I check my DNS - ...
user avatar
1 vote
1 answer
969 views

OpenConnect can ping but can't resolve company websites

Using network-manager-openconnect & network-manager-openconnect-gnome I have set-up a Palo-Alto Networks GlobalProtect VPN to connect to my company network. This works fine and I can access all ...
MrPlow's user avatar
  • 61
3 votes
0 answers
2k views

How to get systemd-resolved to use /etc/hosts when openFortiVPN is active

Ubuntu 18.04. I have a host entry in /etc/hosts and this is being resolved correctly when I use nslookup. My /etc/nsswitch.conf looks like # /etc/nsswitch.conf # # Example configuration of GNU Name ...
Brett Bergquist's user avatar
4 votes
1 answer
15k views

Clear dnsmasq cache without restarting the service

I have cache enabled in my dnsmasq, because it is fast. In some situations (for example, with VPN off), dnsmasq caches wrong results. I want a quick way to clean the cache (when I connect to the VPN ...
blueFast's user avatar
  • 848
0 votes
2 answers
473 views

How do I make the VPN use different DNS?

I want to connect to a other computer (computers that I don't manage at my university) via VPN. I wanna use the default Ubuntu way of doing that (no openVPN). After getting succesfully connected to ...
Karol's user avatar
  • 101
0 votes
0 answers
243 views

Connectivity issues after VPN disconnect: Ping but no DNS

PROBLEM I often use NordVPN on my linux machine (20.04.1), which uses the systemd-resolve network manager. After I disconnect from the VPN, I often have connectivity issues: I CAN ping 8.8.8.8 I ...
user4493605's user avatar
0 votes
1 answer
1k views

Can not resolve domains in wireguard network on xubuntu 20.04

On my Xubuntu 20.04 desktop computer when connected to a wireguard network resolving domain names fails. It works just fine for other clients (Android phone and a Debian10 SBC). The VPN server ...
felix's user avatar
  • 1
0 votes
1 answer
1k views

Per-domain DNS servers

My laptop is running Ubuntu 20.10. It's connected to a network with a fairly normal internet connection - the router provides DHCP, DNS etc. But another host on the network (not the router) provides ...
Tom's user avatar
  • 1,156
1 vote
1 answer
3k views

Failed to configure NetworkManager to use dnsmasq

I am using openconnect to connect to vpn and vpn-slice for vpn splitting. openconnect modifies /etc/resolv.conf after start, but that doesn't help with vpn domain names resolving. To work around that, ...
Ilya Sazonov's user avatar
1 vote
0 answers
636 views

How to permamently add a nameserver to the /etc/resolv.conf?

I daily need to connect to a VPN from my Ubuntu Desktop 20.04, and each time I do that I need to edit the resolv.conf file, since it is constantly updated by NetworkManager. Its content is reset to: # ...
gal007's user avatar
  • 376
1 vote
1 answer
2k views

DNS resolve issues when connected to fritzbox VPN through Ubuntu (20.04.1) vpnc (0.5.3r550-3.1)

i have a device in my private network, let's call it "webserver". when i am directly connected to my private network at home then i can reach that server by using its host name, like http://...
stephanlindauer's user avatar
0 votes
1 answer
1k views

DNS nameserver gets changed after disconnecting from VPN on Ubuntu 16.04

I was using Google DNS 8.8.8.8 in Network Manager applet for some time and everything seemed to work fine. A couple of days ago I switched from Manual settings to Automatic and removed Google DNS for ...
jedi's user avatar
  • 529
1 vote
1 answer
9k views

Ubuntu 20.04 DNS not work after connect to VPN

I have Ubuntu 20.04.1 LTS. I added VPN config using this instruction. VPN is correctly added. When I connect to this VPN I can open only page with address IP. For example I can ping address 8.8.8.8 ...
michal's user avatar
  • 161