I installed Fedora 19 and the machine gets IP address from DHCP and comes up with a hostname of:
$ hostname unknownF46D04B04638
I'd like to set the hostname to match the DNS name that goes with the Address it's getting assigned.
I believe I could use:
$ hostnamectl --static myhost
will set the hostname to myhost.
However, is there a graphical admin tool that will do it ?
In older releases network manager had an option to set the hostname, but doesn't seem to now.
Thanks Chris Kottaridis
On Tue, Apr 22, 2014 at 2:03 PM, Chris Kottaridis chriskot@quietwind.netwrote:
I believe I could use:
$ hostnamectl --static myhost
will set the hostname to myhost.
However, is there a graphical admin tool that will do it ?
In older releases network manager had an option to set the hostname, but doesn't seem to now.
I don't think there is a GUI tool for this. But here is the Fedora documentation I use whenever I need to do this: http://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Gui...
-- Steven Rosenberg http://stevenrosenberg.net/blog http://blogs.dailynews.com/click
FWIW, try...
1. Edit /etc/conf.d/hostname to be:
HOSTNAME="mycomputer"
2. Edit /etc/hosts to be
127.0.0.1 mycomputer.mydomain.local mycomputer
HTH! On Apr 22, 2014 2:04 PM, "Chris Kottaridis" chriskot@quietwind.net wrote:
I installed Fedora 19 and the machine gets IP address from DHCP and comes up with a hostname of:
$ hostname unknownF46D04B04638
I'd like to set the hostname to match the DNS name that goes with the Address it's getting assigned.
I believe I could use:
$ hostnamectl --static myhost
will set the hostname to myhost.
However, is there a graphical admin tool that will do it ?
In older releases network manager had an option to set the hostname, but doesn't seem to now.
Thanks Chris Kottaridis -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
The host name that fedora uses is stashed in the file /etc/hostname these days.
However, is there a graphical admin tool that will do it ?
If there is, someone will "improve" it so you can't find it in the next release anyway, so you might as well stick to editing /etc/hostname.
Of course the hostname used to be in /etc/network and they changed that so we couldn't find it as well, so even sticking to command line tools can be a problem.
A properly configured DHCP and DNS server can either assign names as well as IP addrs, or find out the name you want and update the DNS server with that name, but getting that to work requires effort on the part of whoever runs the servers, you can't really control it from the client, though client config work may be required as well to work with the servers (it all gets mind bendingly complex :-).
On Tue, 2014-04-22 at 16:03 -0500, Chris Kottaridis wrote:
However, is there a graphical admin tool that will do it ?
Didn't you get to set it with the installation routine? Mine did, just installed Fedora 20 a short while ago, tonight, using the live DVD. It suggests you set up the network using the live DVD tools before starting the installation, and that's what I did. Graphically, not editing configuration files.
In Gnome, if you go to Settings > Details > Overview there is a Device name field which is the same as using
hostnamectl set-hostname blah
I've only ever ended up with a mess whenever I explicitly set --pretty --transient hostnames. Maybe related, Adamw was building/rebuilding a server the whole network and hostname thing gave him fits. http://www.happyassassin.net/2013/09/22/sysadmin-adventures-local-dns-and-mo...
Chris Murphy