Hi, On Fedora 35, I was that some domain name to be resolved by /etc/hosts entry.
Let's says:
54.x.y.z somesite.miexample.com
(54.x.y.z is a ipv4 address)
With systemd-resolved is not working.
This my config: resolvectl domain Global: Link 2 (wlp108s0): Link 3 (docker0): Link 4 (br-775990106ebc): Link 13 (vboxnet0): Link 14 (vboxnet1): Link 15 (vboxnet2): Link 16 (vboxnet3): Link 22 (tun0): example.com
resolvectl dns global: Link 2 (wlp108s0): x.y.119.211 x.y.119.212 Link 3 (docker0): Link 4 (br-775990106ebc): Link 13 (vboxnet0): Link 14 (vboxnet1): Link 15 (vboxnet2): Link 16 (vboxnet3): Link 22 (tun0): 192.168.40.40 8.8.8.8
Is there a way that systemd-resolved honors the /etc/hosts file?
Thanks in advance
SB
On Fri, Jan 21, 2022 at 05:06:01PM -0300, Sergio Belkin wrote:
Is there a way that systemd-resolved honors the /etc/hosts file? Thanks in advance
There's ReadEtcHosts= setting controlling that. See "man resolved.conf" or /etc/systemd/resolved.conf itself.
Oh My shame it's working indeed it was a typo, sorry and thanks :)
El vie, 21 ene 2022 a las 17:14, Tomasz Torcz (tomek@pipebreaker.pl) escribió:
On Fri, Jan 21, 2022 at 05:06:01PM -0300, Sergio Belkin wrote:
Is there a way that systemd-resolved honors the /etc/hosts file? Thanks in advance
There's ReadEtcHosts= setting controlling that. See "man resolved.conf" or /etc/systemd/resolved.conf itself.
-- Tomasz Torcz “Funeral in the morning, IDE hacking tomek@pipebreaker.pl in the afternoon and evening.” - Alan Cox _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure