Re: Tip: how to make your own resolv.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Billings:
>> If you are using systemd-resolved, then /etc/resolv.conf should
>> simply have "nameserver 127.0.0.53" 

ToddAndMargo:
> It puts it there and things ago foo bar

There's your new hostname, fubar-a-go-go...  ;-)

But being serious, I did start looking through the man files for the
new networking schemes (man systemd-resolved).  And supposedly,
/etc/resolv.conf is a link to /run/systemd/resolve/stub-resolv.conf
And when it is, it controls the file its linked to.

If you unlink the file, and edit your /etc/resolv.conf, systemd-
resolved should leave it alone, and you could could manually adjust it.
Of course, something else could, now, edit /etc/resolv.conf.

The DNS server data that comes from the DHCP daemon ends up in
/run/systemd/resolve/resolv.conf (note the different filename), and
systemd-resolved is using that information in conjunction with what it
provides to the traditional /etc/resolve.conf file.

It is all a bit of a maze, and I don't really see how this was an
improvement on the previous methodology.

Likewise with network configuration.  If the previous config files
actually did the job, why didn't they keep on using them, and just
update the tools that set them up?

NB:  My Fedora 36 installation works as it came out of the box, so to
speak.  DHCPD on my CentOS server is configuring the network as
I expect.  The F36 does go through its own DNS maze, but is making use
of my BIND DNS server on CentOS.  And mDNS does work for the three
other things on my LAN that make use of it.  But I'm not using VPNs, or
multi-port networking cards.

But I'd say, start by looking at man systemd-resolved and noodling your
way through the things it mentions in there.

-- 
 
uname -rsvp
Linux 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux