Before start pptp vpn:
$ ls -laF /run/systemd/resolve/stub-resolv.conf -rw-r--r-- 1 systemd-resolve systemd-resolve 714 jun 30 18:26 /run/systemd/resolve/stub-resolv.conf
After start pptp vpn:
After stop pptp vpn:
$ ls -laF /run/systemd/resolve/stub-resolv.conf -rw------- 1 root root 714 jun 30 18:26 /run/systemd/resolve/stub-resolv.conf
File /run/systemd/resolve/stub-resolv.conf is readable only for root user. And DNS is accessible only for root user.
$ ping google.com ping: google.com: Temporary failure in name resolution $ sudo ping google.com PING google.com (172.217.169.110) 56(84) bytes of data. 64 bytes from sof02s31-in-f14.1e100.net (172.217.169.110): icmp_seq=1 ttl=55 time=0.999 ms ..........
Before start pptp vpn:
$ ls -laF /run/systemd/ resolve/ stub-resolv. conf resolve/ stub-resolv. conf
-rw-r--r-- 1 systemd-resolve systemd-resolve 714 jun 30 18:26 /run/systemd/
After start pptp vpn:
$ ls -laF /run/systemd/ resolve/ stub-resolv. conf resolve/ stub-resolv. conf
-rw-r--r-- 1 systemd-resolve systemd-resolve 714 jun 30 18:26 /run/systemd/
After stop pptp vpn:
$ ls -laF /run/systemd/ resolve/ stub-resolv. conf resolve/ stub-resolv. conf
-rw------- 1 root root 714 jun 30 18:26 /run/systemd/
File /run/systemd/ resolve/ stub-resolv. conf is readable only for root user.
And DNS is accessible only for root user.
$ ping google.com in-f14. 1e100.net (172.217.169.110): icmp_seq=1 ttl=55 time=0.999 ms
ping: google.com: Temporary failure in name resolution
$ sudo ping google.com
PING google.com (172.217.169.110) 56(84) bytes of data.
64 bytes from sof02s31-
..........