|
NSA325 - DNS problem after update to Debian 12 September 03, 2025 10:40AM |
Registered: 4 years ago Posts: 27 |
Debian GNU/Linux 12 \n \l
cat: /etc/resolv.conf: No such file or directory
# # The network configuration file. This file is currently only used in # conjunction with the TI-RPC code in the libtirpc library. # # Entries consist of: # # <network_id> <semantics> <flags> <protofamily> <protoname> \ # <device> <nametoaddr_libs> # # The <device> and <nametoaddr_libs> fields are always empty in this # implementation. # udp tpi_clts v inet udp - - tcp tpi_cots_ord v inet tcp - - udp6 tpi_clts v inet6 udp - - tcp6 tpi_cots_ord v inet6 tcp - - rawip tpi_raw - inet - - - local tpi_cots_ord - loopback - - - unix tpi_cots_ord - loopback - - - root@debian:~# cat /etc/networks default 0.0.0.0 loopback 127.0.0.0 link-local 169.254.0.0
rename /end0=eth0 auto lo eth0 iface lo inet loopback # primary network interface auto eth0 iface eth0 inet static address 192.168.2.21 netmask 255.255.255.0 gateway 192.168.2.1 dns-nameservers 8.8.8.8 8.8.4.4 1.1.1.1
|
Re: NSA325 - DNS problem after update to Debian 12 September 03, 2025 12:29PM |
Admin Registered: 15 years ago Posts: 20,056 |
Quote
I don't recognise the 169.254.x.x in the link-local
echo "nameserver 192.168.2.1" > /etc/resolv.confor
echo "nameserver 8.8.8.8" > /etc/resolv.conf
ping 8.8.8.8 ping google.comIf it did not work, bring the network down and up. Try again.
|
Re: NSA325 - DNS problem after update to Debian 12 September 03, 2025 01:03PM |
Registered: 4 years ago Posts: 27 |
# echo "nameserver 192.168.2.1" > /etc/resolv.conf -bash: /etc/resolv.conf: No such file or directory
~# ls -al /etc/resolv* lrwxrwxrwx 1 root root 39 Jul 23 2023 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf /etc/resolvconf: total 20 drwxr-xr-x 3 root root 4096 Aug 24 2022 . drwxr-xr-x 88 root root 12288 Sep 3 19:59 .. drwxr-xr-x 2 root root 4096 Aug 24 2022 update-libc.d [\code] And# nano /etc/resolv.conf [\code] opens empty file which I'm not able to save, with the error that the file does not exist.
|
Re: NSA325 - DNS problem after update to Debian 12 September 03, 2025 01:18PM |
Admin Registered: 15 years ago Posts: 20,056 |
Quote
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
|
Re: NSA325 - DNS problem after update to Debian 12 September 03, 2025 02:59PM |
Registered: 4 years ago Posts: 27 |
|
Re: NSA325 - DNS problem after update to Debian 12 September 03, 2025 03:43PM |
Admin Registered: 15 years ago Posts: 20,056 |
|
Re: NSA325 - DNS problem after update to Debian 12 September 03, 2025 09:59PM |
Registered: 1 year ago Posts: 48 |
|
Re: NSA325 - DNS problem after update to Debian 12 September 04, 2025 01:18PM |
Admin Registered: 15 years ago Posts: 20,056 |
Quote
Bobby
I updated my NSA325 to Debian 12 and lost network connection
|
Re: NSA325 - DNS problem after update to Debian 12 September 04, 2025 03:26PM |
Admin Registered: 15 years ago Posts: 20,056 |
> rename /end0=eth0 > > auto lo eth0 > iface lo inet loopback > # primary network interface > auto eth0 > iface eth0 inet static > address 192.168.2.21 > netmask 255.255.255.0 > gateway 192.168.2.1 > dns-nameservers 8.8.8.8 8.8.4.4 1.1.1.1 >
|
Re: NSA325 - DNS problem after update to Debian 12 September 07, 2025 02:48AM |
Registered: 4 years ago Posts: 27 |
lrwxrwxrwx 1 root root 39 Jul 23 2023 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf- the solution was to remove the symlink
rm /etc/resolve.conf- create /etc/resolve.conf with at least one working nameserver
nano /etc/resolve.conf- add nameserver and save the file
nameserver 8.8.8.8- apt update && upgrade
Quote
BTW, don't use 1.1.1.1 until you are sure you want to:
https://arstechnica.com/security/2025/09/mis-issued-certificates-for-1-1-1-1-dns-service-pose-a-threat-to-the-internet/