Got a new router, DNS stopped working

I notticed this problem when I ssh into the machine and I try to update with "apt-get update" and I it can't resolve any of the url's

Err:1 http://pt.archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'pt.archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Temporary failure resolving 'dl.winehq.org'
Err:4 http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:5 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Temporary failure resolving 'packages.microsoft.com'
Err:6 http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 InRelease
Temporary failure resolving 'repo.mongodb.org'
Err:7 https://download.mono-project.com/repo/ubuntu preview-focal InRelease
Temporary failure resolving 'download.mono-project.com'

When I tried pihole -g I've also got an error..

pihole -g
[✗] DNS resolution is currently unavailable

Here's my /etc/resolv.conf:

nameserver 1.1.1.1
nameserver 1.0.0.1

I believe it has something to do with the gateway, the old one ends with .254 and the new one ends with .1, but I was still not able to get it running.

Here's my log, since I can't upload it coz.. DNS
https://justpaste.it/7g8ss

From your debug log:

[i] Default IPv4 gateway: 192.168.1.254
   * Pinging 192.168.1.254...
[✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)

Edit file /etc/dhcpcd.conf and look for an entry similar to this. Edit the static router to the correct address. Then reboot the Pi with sudo reboot now

interface eth0
    static ip_address=192.168.0.155/24
    static routers=192.168.0.1
    static domain_name_servers=127.0.0.1

That solved it! Thank you

A segunda, 10/08/2020, 16:06, jfb via Pi-hole Userspace <replies@support.pi-hole.net> escreveu:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.