Can connect to fqdn. DNS issue?

I turned on my computer after a couple weeks and I can no longer connect to websites using fqdn. Pinging google.com returns “google.com:name or service not known.”

I am able to ping 8.8.8.8 just fine and my computer is getting an address from dhcp.

Also nslookup google.com 8.8.8.8 returns googles ip address which I can ping successfully.

I checked my /etc/resolv.conf and it has…

nameserver 127.0.0.53
options Edna trust-ad
search .

I don’t know what that stuff means honestly. I tried adding nameserver 8.8.8.8 to the beginning of the resolv.conf file but it didn’t help. The change is removed from the resolv.conf file after reboot.

I had proton a vpn flatpak installed at one point but I removed it the last time I used the computer. I’m wondering if there is some configuration that got screwed up by it. I can’t find a fix on google and I don’t know what else to check. Thanks.

I think that content should be

nameserver 127.0.0.53
options edns0 trust-ad
search .

It would appear that something is preventing you from properly accessing dns and a malformed file like that could break it.

The command you gave should return something like this.

$ nslookup google.com 8.8.8.8
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	google.com
Address: 142.250.138.100
Name:	google.com
Address: 142.250.138.138
Name:	google.com
Address: 142.250.138.102
Name:	google.com
Address: 142.250.138.139
Name:	google.com
Address: 142.250.138.113
Name:	google.com
Address: 142.250.138.101
Name:	google.com
Address: 2607:f8b0:4023:1006::8a
Name:	google.com
Address: 2607:f8b0:4023:1006::8b
Name:	google.com
Address: 2607:f8b0:4023:1006::64
Name:	google.com
Address: 2607:f8b0:4023:1006::65

Pinging an ip address from that does not help solve the dns issue.

Specify public resolvers in your network connection settings and then check:

resolvectl --no-pager status

I found the issue in a different thread that fixed my problem. Thanks for the replies.