syslog error about localhost
Karl Auer
kauer at biplane.com.au
Sun Jul 16 03:21:40 UTC 2023
On Sat, 2023-07-15 at 11:12 -0500, Jerry Geis wrote:
> I see this in syslog
>
> Jul 15 11:04:12 lsi003a systemd-resolved[545]: /etc/hosts:2:
> hostname
> "localhost.(none)" is not valid, ignoring.
>
> My /etc/hosts file
> 127.0.0.1 localhost
> 127.0.0.1 localhost.(none)
"localhost.(none)" is not a valid DNS nam, so when systemd.resolved
reads your /etc/hosts file, it rightly warns you that this line
contains and invalid domain name.
Something managed to generate this invalid domain name in your
/etc/hosts file. It looks as if something expected a default domain or
similar and tried to create a localhost entry for it, but it had no
value for the domain so it stuck in "(none)".
Because systemd.resolved will ignore that invalid line, it's pretty
harmless, but as Sarunas Burdulis says, it would be good to find and
fix whatever did it.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list