netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to set domainname with iproute2? (net-tools deprecation)
@ 2020-03-13 16:21 Chuck
  2020-03-13 17:00 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck @ 2020-03-13 16:21 UTC (permalink / raw)
  To: netdev

I see calls to move the world from net-tools to iproute2 [1] [2] [3].

My Linux distro uses the `hostname` executable from net-tools to set the
hostname, which simply passes it through to the `sethostname` system call.
I don't see any references to `sethostname` in the iproute2 sources.  I
guess the replacement is systemd's `hostnamectl set-hostname`?

My distro uses the `domainname` executable (which is a symlink to
`hostname`) from net-tools to set the domain name, which simply passes it
through to the `setdomainname` system call.  I don't see any calls
to `sethostname` in either iproute2 or systemd.

What is the recommended way to set the domain name during system
start-up without net-tools?

(Asking here because iproute2 is supposed to replace net-tools.  If this is
not the right list for this, 1. Apologies, and 2. Where is the right place
for this inquiry?)

[1] https://lwn.net/Articles/710533/
[2] https://lwn.net/Articles/710535/
[3] https://wiki.linuxfoundation.org/networking/iproute2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-13 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-13 16:21 How to set domainname with iproute2? (net-tools deprecation) Chuck
2020-03-13 17:00 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).