Difference between revisions of "Systemd"
Jump to navigation
Jump to search
imported>Busk |
|||
Line 34: | Line 34: | ||
``` | ``` | ||
nameserver 10.x.x.1 | nameserver 10.x.x.1 | ||
+ | ``` | ||
+ | |||
+ | or disable another way | ||
+ | |||
+ | ``` | ||
+ | ou can always disable your systemd-resolved by | ||
+ | |||
+ | systemctl disable systemd-resolved.service | ||
+ | |||
+ | command. And run: | ||
+ | |||
+ | sudo rm /etc/resolv.conf && sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf | ||
+ | |||
+ | to use /etc/resolv.conf config as it was earlier in previous ubuntu versions. | ||
``` | ``` |
Latest revision as of 16:00, 19 July 2019
User service to start on reboot
Add forwarding servers
vim /etc/systemd/resolved.conf
DNS=8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844 #Disabling #DNSStubListener=no #Cache=no
systemd-resolved
/etc/resolv.conf
nameserver 127.0.0.53 options edns0 search example.io
Disable systemd-resolved
/etc/systemd/resolved.conf
[Resolve] DNSStubListener=no Cache=no
/etc/resolv.conf
nameserver 10.x.x.1
or disable another way
ou can always disable your systemd-resolved by systemctl disable systemd-resolved.service command. And run: sudo rm /etc/resolv.conf && sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf to use /etc/resolv.conf config as it was earlier in previous ubuntu versions.