DNS Configuration problem

ahmedmousa

New Member
Oct 6, 2025
2
0
1
Hi all,
by trying to run apt update I am getting dns error, so by pinging test:

Code:
ping -c 4 1.1.1.1
I am getting this reply:
Code:
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=55 time=26.2 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=55 time=26.2 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=55 time=36.8 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=55 time=26.8 ms

--- 1.1.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 26.161/28.977/36.769/4.504 ms

but by pinging any dns test for example:
Code:
ping -c 4 deb.debian.org or ping -c 4 google.com
I am getting nothing. Also by digging it: dig google.com I am getting this:
Code:
;; communications error to 1.1.1.1#53: timed out
;; communications error to 1.1.1.1#53: timed out
;; communications error to 1.1.1.1#53: timed out
;; communications error to 8.8.8.8#53: timed out
;; communications error to 8.8.4.4#53: timed out

So I have tried to edit /etc/resolv.conf to this:
Code:
nameserver 1.1.1.1
nameserver 8.8.8.8

but also not working. I am guessing that something overwrites directly my configuration, but I am not quite sure what is it!!!

Here is the output of ip a:
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: ens21f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d4:04:e6:5d:e0:a0 brd ff:ff:ff:ff:ff:ff
    altname enp34s0f0np0
    inet6 fe80::d604:e6ff:fe5d:e0a0/64 scope link
       valid_lft forever preferred_lft forever
3: ens21f1np1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d4:04:e6:5d:e0:a1 brd ff:ff:ff:ff:ff:ff
    altname enp34s0f1np1
4: ens22f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether d4:04:e6:5f:5d:ee brd ff:ff:ff:ff:ff:ff
    altname enp35s0f0np0
5: ens22f1np1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d4:04:e6:5f:5d:ef brd ff:ff:ff:ff:ff:ff
    altname enp35s0f1np1
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether d4:04:e6:5f:5d:ee brd ff:ff:ff:ff:ff:ff
    inet 141.60.103.135/25 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::d604:e6ff:fe5f:5dee/64 scope link
       valid_lft forever preferred_lft forever

I will be glad for any kind of help :)
Thanks