как сбросить настройки DNS к значениям по умолчанию?

в то время как я изучаю DNS, я установил слишком много приложений, таких как BIND и DNSmasq и внес некоторые изменения в/etc/resolve.conf

и теперь я хотел бы сбросить настройки DNS к значениям по умолчанию? Я удалил DNSmasq и вещи, которые я помню, но есть ли, должен некоторым образом сбросить настройки DNS к значениям по умолчанию, а не переустановить систему?

0
задан 3 January 2019 в 10:56

1 ответ

Во-первых, Ваш/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=
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=yes
#DNSStubListener=yes

Затем выполненный: sudo rm /etc/resolv.conf && sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

И проверьте, что с Вашим systemd-разрешенным включают: systemctl status systemd-resolved.service и если не затем включают его: systemctl enable systemd-resolved.service и запустите: systemctl start systemd-resolved.service

Кажется, это - все.

1
ответ дан 26 October 2019 в 16:00

Другие вопросы по тегам:

Похожие вопросы: