Im having an issue with DNS in a brand new Qubes install. I can ping an ip address in appvms but trying to connect to a domain doesn’t work. I have tried using sys-net based on both fedora and debian. I have also tried running “sudo systemctl restart qubes-network.service” and “qubes-setup-dnat-to-ns” in sys-net.
The only way to get dns working is setting something such as “nameserver 9.9.9.9” in /etc/resolv.conf in the appvm.
The contents of /etc/resolv.conf in sys-net look like this:
#Generated by NetworkManager
search lan
nameserver 192.168.1.1
nameserver fd91:bcaa:fb21::1
Are you able to resolve domains in the sys-net qube using DNS 192.168.1.1?
Make sure that DNS 192.168.1.1 works.
I am not able to resolve domains in the sys-net qube using DNS 192.168.1.1
I edited /etc/resolv.conf to only have “nameserver 192.168.1.1”
I am able to ping 192.168.1.1, but DNS doesn’t work. This doesn’t seem to be a problem with the wifi because the wifi works when using my phone and I have tried multiple wifi.
Try to boot from some Live OS on your PC and check the DNS resolution using DNS 192.168.1.1. there.
Your router really spawns a net with name lan and his address is 192.168.1.1?
The resolv.conf is generated on the fly with each connect to a network.
So if i (for example) switch from my WIFI-router to my mobile hotspot, the contents of sys:/etc/resolv.conf is automatically changed from the address of my wifi-router to the one of my hotspot.
It seems I just needed to update the template, things are running normally now
1 Like