DNS after shutdown VPN

Hi,

I'm having a problem with DNS after disconnect from VPN. I have a VPN PPTP to my work, so when I use, I have observed that they add 2 entries to /etc/resolv.conf

After I disconnect, this 2 entries remains there, so my experience on browser for example, is a little delay on everything cause I think the system is trying the DNS in order. The first 2 entries are obtained when connected to VPN and the last one is my home DNS, that I think this should be the only remaining after VPN disconnection

How can I fix this, supposing this is an error?

Generated by NetworkManager

search Home
nameserver 172.24.0.221
nameserver 172.24.0.222
nameserver 192.168.1.10

And this is the journalctl

-- Logs begin at Sat 2020-05-30 11:21:23 CEST, end at Thu 2020-08-06 16:27:58 CEST. --
Aug 06 16:02:12 rodrigo-pc NetworkManager[616]: [1596722532.0652] audit: op="statistics" arg="refresh-rate-ms" pid=1398 uid=1000 result="success"
Aug 06 16:02:13 rodrigo-pc NetworkManager[616]: [1596722533.8003] audit: op="connection-activate" uuid="b36a4bab-653f-4b43-aa9e-x2869" name="Teldat_VPN" pid=1398 uid=1000 result="success"
Aug 06 16:02:13 rodrigo-pc NetworkManager[616]: [1596722533.8103] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",0]: Started the VPN service, PID 42839
Aug 06 16:02:13 rodrigo-pc NetworkManager[616]: [1596722533.8289] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",0]: Saw the service appear; activating connection
Aug 06 16:02:13 rodrigo-pc NetworkManager[616]: [1596722533.8379] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",0]: VPN plugin: state changed: starting (3)
Aug 06 16:02:13 rodrigo-pc pppd[42843]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Aug 06 16:02:13 rodrigo-pc NetworkManager[42843]: Plugin /usr/lib/pppd/2.4.7/nm-pptp-pppd-plugin.so loaded.
Aug 06 16:02:13 rodrigo-pc pppd[42843]: pppd 2.4.7 started by root, uid 0
Aug 06 16:02:13 rodrigo-pc pppd[42843]: Using interface ppp0
Aug 06 16:02:13 rodrigo-pc NetworkManager[42843]: Using interface ppp0
Aug 06 16:02:13 rodrigo-pc NetworkManager[42843]: Connect: ppp0 <--> /dev/pts/3
Aug 06 16:02:13 rodrigo-pc pppd[42843]: Connect: ppp0 <--> /dev/pts/3
Aug 06 16:02:13 rodrigo-pc NetworkManager[616]: [1596722533.8466] manager: (ppp0): new Ppp device (/org/freedesktop/NetworkManager/Devices/11)
Aug 06 16:02:13 rodrigo-pc pptp[42846]: nm-pptp-service-42839 log[main:pptp.c:353]: The synchronous pptp option is NOT activated
Aug 06 16:02:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 1 'Start-Control-Connection-Request'
Aug 06 16:02:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_disp:pptp_ctrl.c:781]: Received Start Control Connection Reply
Aug 06 16:02:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_disp:pptp_ctrl.c:815]: Client connection established.
Aug 06 16:02:14 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 7 'Outgoing-Call-Request'
Aug 06 16:02:14 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_disp:pptp_ctrl.c:900]: Received Outgoing Call Reply.
Aug 06 16:02:14 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_disp:pptp_ctrl.c:938]: Outgoing call established (call ID 22562, peer's call ID 27553).
Aug 06 16:02:17 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_disp:pptp_ctrl.c:1004]: PPTP_SET_LINK_INFO received from peer_callid 22562
Aug 06 16:02:17 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_disp:pptp_ctrl.c:1006]: send_accm is 00000000, recv_accm is FFFFFFFF
Aug 06 16:02:17 rodrigo-pc pptp[42856]: nm-pptp-service-42839 warn[ctrlp_disp:pptp_ctrl.c:1011]: Non-zero Async Control Character Maps are not supported!
Aug 06 16:02:17 rodrigo-pc pppd[42843]: CHAP authentication succeeded
Aug 06 16:02:17 rodrigo-pc NetworkManager[42843]: CHAP authentication succeeded
Aug 06 16:02:17 rodrigo-pc pppd[42843]: MPPE 128-bit stateless compression enabled
Aug 06 16:02:17 rodrigo-pc NetworkManager[42843]: MPPE 128-bit stateless compression enabled
Aug 06 16:02:20 rodrigo-pc pppd[42843]: Cannot determine ethernet address for proxy ARP
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0374] device (ppp0): state change: unmanaged -> unavailable (reason 'connection-assumed', sys-iface-state: 'external')
Aug 06 16:02:20 rodrigo-pc NetworkManager[42843]: Cannot determine ethernet address for proxy ARP
Aug 06 16:02:20 rodrigo-pc NetworkManager[42843]: local IP address 172.24.XXXX
Aug 06 16:02:20 rodrigo-pc NetworkManager[42843]: remote IP address 172.24.XXXX
Aug 06 16:02:20 rodrigo-pc NetworkManager[42843]: primary DNS address 172.24.0.221
Aug 06 16:02:20 rodrigo-pc NetworkManager[42843]: secondary DNS address 172.24.0.222
Aug 06 16:02:20 rodrigo-pc pppd[42843]: local IP address 172.24.XXXXXX
Aug 06 16:02:20 rodrigo-pc pppd[42843]: remote IP address 172.24.XXXXXX
Aug 06 16:02:20 rodrigo-pc pppd[42843]: primary DNS address 172.24.0.221
Aug 06 16:02:20 rodrigo-pc pppd[42843]: secondary DNS address 172.24.0.222
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0451] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",0]: VPN connection: (IP4 Config Get) reply received from old-style plugin
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0470] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: VPN Gateway: XXXXXXXXXXXXXX
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0471] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Tunnel Device: "ppp0"
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0471] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: IPv4 configuration:
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0472] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Internal Address: 172.24.XXXXX
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0472] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Internal Prefix: 32
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0473] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Internal Point-to-Point Address: 172.24.201.150
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0473] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Static Route: 0.0.0.0/0 Next Hop: 0.0.0.0
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0474] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Static Route: 172.24.XXXXX/32 Next Hop: 0.0.0.0
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0474] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Internal DNS: 172.24.0.221
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0475] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: Internal DNS: 172.24.0.222
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0475] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: DNS Domain: '(none)'
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0475] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: Data: No IPv6 configuration
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0477] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: VPN plugin: state changed: started (4)
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0542] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",10:(ppp0)]: VPN connection: (IP Config Get) complete
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0556] device (ppp0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'external')
Aug 06 16:02:20 rodrigo-pc NetworkManager[616]: [1596722540.0750] policy: set 'Teldat_VPN' (ppp0) as default for IPv4 routing and DNS
Aug 06 16:02:21 rodrigo-pc NetworkManager[616]: [1596722541.1833] audit: op="statistics" arg="refresh-rate-ms" pid=1398 uid=1000 result="success"
Aug 06 16:03:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[logecho:pptp_ctrl.c:719]: Echo Request received.
Aug 06 16:03:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 6 'Echo-Reply'
Aug 06 16:04:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[logecho:pptp_ctrl.c:719]: Echo Request received.
Aug 06 16:04:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 6 'Echo-Reply'
Aug 06 16:05:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[logecho:pptp_ctrl.c:719]: Echo Request received.
Aug 06 16:05:13 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 6 'Echo-Reply'
Aug 06 16:05:14 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[logecho:pptp_ctrl.c:719]: Echo Reply received.
Aug 06 16:06:14 rodrigo-pc pptp[42856]: nm-pptp-service-42839 log[logecho:pptp_ctrl.c:719]: Echo Reply received.
Aug 06 16:07:04 rodrigo-pc NetworkManager[616]: [1596722824.0320] audit: op="statistics" arg="refresh-rate-ms" pid=1398 uid=1000 result="success"
Aug 06 16:07:05 rodrigo-pc NetworkManager[616]: [1596722825.5321] audit: op="connection-deactivate" uuid="b36a4bab-653f-4b43-aa9e-x2869" name="Teldat_VPN" pid=1398 uid=1000 result="success"
Aug 06 16:07:05 rodrigo-pc NetworkManager[616]: [1596722825.5604] policy: set 'LittleBR_5Ghz' (wlp3s0) as default for IPv4 routing and DNS
Aug 06 16:07:05 rodrigo-pc pppd[42843]: Terminating on signal 15
Aug 06 16:07:05 rodrigo-pc NetworkManager[42843]: Terminating on signal 15
Aug 06 16:07:05 rodrigo-pc NetworkManager[42843]: Modem hangup
Aug 06 16:07:05 rodrigo-pc pppd[42843]: Modem hangup
Aug 06 16:07:05 rodrigo-pc pppd[42843]: Connect time 4.8 minutes.
Aug 06 16:07:05 rodrigo-pc NetworkManager[42843]: Connect time 4.8 minutes.
Aug 06 16:07:05 rodrigo-pc NetworkManager[42843]: Sent 674108 bytes, received 4381736 bytes.
Aug 06 16:07:05 rodrigo-pc pppd[42843]: Sent 674108 bytes, received 4381736 bytes.
Aug 06 16:07:05 rodrigo-pc pppd[42843]: MPPE disabled
Aug 06 16:07:05 rodrigo-pc NetworkManager[42843]: MPPE disabled
Aug 06 16:07:05 rodrigo-pc pppd[42843]: Connection terminated.
Aug 06 16:07:05 rodrigo-pc NetworkManager[42843]: Connection terminated.
Aug 06 16:07:05 rodrigo-pc NetworkManager[616]: [1596722825.5836] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",0]: VPN plugin: state changed: stopping (5)
Aug 06 16:07:05 rodrigo-pc NetworkManager[616]: [1596722825.5837] vpn-connection[0x5640740ae520,b36a4bab-653f-4b43-aa9e-x2869,"Teldat_VPN",0]: VPN service disappeared
Aug 06 16:07:05 rodrigo-pc NetworkManager[616]: [1596722825.5845] device (ppp0): state change: disconnected -> unmanaged (reason 'unmanaged', sys-iface-state: 'removed')
Aug 06 16:07:05 rodrigo-pc pppd[42843]: Exit.
Aug 06 16:07:07 rodrigo-pc NetworkManager[616]: [1596722827.6337] audit: op="statistics" arg="refresh-rate-ms" pid=1398 uid=1000 result="success"
Aug 06 16:12:38 rodrigo-pc NetworkManager[616]: [1596723158.7675] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/12)
Aug 06 16:12:38 rodrigo-pc NetworkManager[616]: [1596723158.7759] device (eth0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Aug 06 16:16:15 rodrigo-pc NetworkManager[616]: [1596723375.5002] audit: op="statistics" arg="refresh-rate-ms" pid=1398 uid=1000 result="success"
Aug 06 16:16:19 rodrigo-pc NetworkManager[616]: [1596723379.9439] audit: op="statistics" arg="refresh-rate-ms" pid=1398 uid=1000 result="success"

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by