Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2022-06-21 19:55:12

  Karoll - Użytkownik

Karoll
Użytkownik
Zarejestrowany: 2019-08-12

Roznice w plikach konfigu DNS z dzialajacym polaczeniem i bez polaczen

Naliczylem 4 glowne pliki konfigu DNS na localhost:
2 z nich nie zmieniaja sie po wpieciu modemu Huawei:

Kod:

cat /etc/systemd/resolved.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
DNS=8.8.8.8 1.1.1.1
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
DNSSEC=no
#DNSOverTLS=no
#Cache=yes
DNSStubListener=yes
#ReadEtcHosts=yes

Kod:

cat /run/resolvconf/resolv.conf
# 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
nameserver 127.0.0.53
search localdomain

2 pozostale zmieniaja sie po wpieciu modemu Huawei i utracie polaczenia.

Kod:

cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must 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.

nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 8.8.4.4
search localdomain

zamienia sie na:

Kod:

cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must 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.

nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 192.168.8.1

oraz:

Kod:

cat /run/systemd/resolve/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must 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.

nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 8.8.4.4
search localdomain

zamienia sie na:

Kod:

cat /run/systemd/resolve/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must 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.

nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 192.168.8.1

dodatkowe info:

Kod:

nslookup
> server
Default server: 8.8.8.8
Address: 8.8.8.8#53
Default server: 1.1.1.1
Address: 1.1.1.1#53
Default server: 8.8.4.4
Address: 8.8.4.4#53

Wpiecie modemu, powoduje zmiane konfigu obydwu plikow i utrate polaczenia.
Zrobilem kawal porzadnej roboty - pomozecie ???

Ostatnio edytowany przez Karoll (2022-06-21 20:10:55)


Tolerancja i apatia, to ostatnie cnoty umierającego społeczeństwa

Offline

 

#2  2022-06-22 09:23:32

  morfik - Cenzor wirtualnego świata

morfik
Cenzor wirtualnego świata
Skąd: ze WSI
Zarejestrowany: 2011-09-15
Serwis

Re: Roznice w plikach konfigu DNS z dzialajacym polaczeniem i bez polaczen

Ten /etc/resolv.conf jest dowiązaniem do /run/systemd/resolve/resolv.conf , także one będą mieć zawsze tę samą zawartość.

Ostatnio edytowany przez morfik (2022-06-22 09:23:51)

Offline

 

#3  2022-06-22 11:54:07

  Karoll - Użytkownik

Karoll
Użytkownik
Zarejestrowany: 2019-08-12

Re: Roznice w plikach konfigu DNS z dzialajacym polaczeniem i bez polaczen

Moim zdaniem, problem jest w 2 aspektach:
a/ pliki sa konfigurowane automatycznie
b/ automatyczna konfiguracja z zastosowaniem modemu Huawei - odcina Internet. Bez modemu dziala. Wniosek, modem jest przyczyna klopotu.

Ps. Szukam nie tekstu (bo juz sie naczytalem) ale rysunku/zdjecia/schematu dla procedury DNS. Zeby raz zapamietac i miec zawsze przed oczami.
      W Google widzialem kilka poprawnych ale mi nie trafia.

Ostatnio edytowany przez Karoll (2022-06-22 11:58:04)


Tolerancja i apatia, to ostatnie cnoty umierającego społeczeństwa

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)