I'm having this strange behavior when I connect to my company VPN using barracudavpn (my OS is Fedora 36). After connecting network configuration seems ok:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.16.40.1 0.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlp0s20f3
10.16.40.0 0.0.0.0 255.255.252.0 U 0 0 0 tun0
88.157.223.5 192.168.1.1 255.255.255.255 UGH 0 0 0 wlp0s20f3
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.22.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-533d90405936
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp0s20f3
192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 wlp0s20f3
$ cat /etc/resolv.conf
nameserver 10.0.1.3
nameserver 10.40.0.6
nameserver 10.0.1.2
nameserver 10.40.0.7
nameserver 127.0.0.53
search mycompany.xx home
If I query the DNS for some service it works as expected:
$ nslookup bitbucket.mycompany.xx
Server: 10.0.1.3
Address: 10.0.1.3#53
bitbucket.mycompany.xx canonical name = app-bitbucket.mycompany.xx.
Name: app-bitbucket.mycompany.xx
Address: 10.0.1.246
But any other command fails:
$ ping bitbucket.mycompany.xx
ping: bitbucket.mycompany.xx: Name or service not known
What am I missing here?