mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2020-06-23, 09:30   #1
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

11000110100012 Posts
Default systemd-resolved forgets to use local DNS

About every other day, my ubuntu-18.04 machines forget that I have a local DNS server. I can get them to remember by restarting systemd-resolved, but does anyone know where that service keeps its logs and why it might forget about the local DNS server (which is advertised on dhcp4 and dhcp6) occasionally?

Code:
pineapple@pineapple:~$ ssh oak@oak
ssh: Could not resolve hostname oak: Temporary failure in name resolution
pineapple@pineapple:~$ sudo systemctl restart systemd-resolved.service
[sudo] password for pineapple:
fivemack is offline   Reply With Quote
Old 2020-06-23, 09:49   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,323 Posts
Default

Quote:
Originally Posted by fivemack View Post
About every other day, my ubuntu-18.04 machines forget that I have a local DNS server. I can get them to remember by restarting systemd-resolved, but does anyone know where that service keeps its logs and why it might forget about the local DNS server (which is advertised on dhcp4 and dhcp6) occasionally?

Code:
pineapple@pineapple:~$ ssh oak@oak
ssh: Could not resolve hostname oak: Temporary failure in name resolution
pineapple@pineapple:~$ sudo systemctl restart systemd-resolved.service
[sudo] password for pineapple:
I don't know where it will be logged, maybe /var/log/, but have you tried sudo systemctl enable systemd-resolved.service ? Alternatively you could use a local /etc/hosts file.
paulunderwood is online now   Reply With Quote
Old 2020-06-23, 14:43   #3
ric
 
ric's Avatar
 
Jul 2004
Milan, Ita

3×59 Posts
Default

Quote:
Originally Posted by fivemack View Post
does anyone know where that service keeps its logs and why it might forget about the local DNS server (which is advertised on dhcp4 and dhcp6) occasionally?
As per this post (2nd answer), you may want to use
Code:
journalctl -u systemd-resolved -f
and follow the suggestion within that post to elevate loglevel by editing systemd-resolved, for some clues.
HTH

<RANT on systemd></RANT> ;-)
ric is offline   Reply With Quote
Old 2020-06-23, 21:19   #4
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
Ͳօɾօղէօ

7×401 Posts
Default

https://askubuntu.com/questions/9072...lved-in-ubuntu
Mark Rose is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Many functions missing -RESOLVED. SUE (stupid user error) kladner Forum Feedback 1 2019-06-13 03:29
Example of difference between my() and local()? hansl PARI/GP 3 2019-05-14 03:19
windows forgets wildrabbitt Software 5 2016-01-10 19:23
Quote from a local paper. ishkibibble Science & Technology 0 2012-12-22 02:53
Duplication of work: local vs. db EdH Aliquot Sequences 2 2010-12-31 04:30

All times are UTC. The time now is 08:51.

Mon Aug 3 08:51:40 UTC 2020 up 17 days, 4:38, 0 users, load averages: 0.97, 1.02, 1.13

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.