If you're using a static IP or something on your network is configured differently, you may have to set your DNS manually. Open “/etc/systemd/resolved. conf.” In that file, uncomment the DNS line and add either the IP of your router or another known DNS server.