I'm having DNS problems with one WiFi network which I've been using for a long time. I tried to do an hotspot with my phone and everything worked as normal, so the issue is only on that network.
ping 8.8.8.8 works, but
nslookup google.com
;; Got SERVFAIL reply from 127.0.0.53, trying next server
;; connection timed out; no servers could be reached
I've tried to install resolvconf and other solutions found online but none of them worked.
This is the content of /etc/resolv.conf (after adding nameserver 8.8.8.8 in /etc/resolvconf/resolv.conf.d/tail):
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
search station
nameserver 8.8.8.8