[clue] Setting FQDN on RHEL7.

Charles Burton charles.d.burton at gmail.com
Mon Oct 26 07:30:35 MDT 2015


Yeah, in RHEL7 the recommended method is:

hostnamectl set-hostname <fqdn>


On Fri, Oct 23, 2015 at 4:21 PM, David L. Willson <DLWillson at thegeek.nu>
wrote:

> I think hostnamectl does those things.
>
>
>
> Sent from my Verizon Wireless 4G LTE smartphone
>
>
> -------- Original message --------
> From: P B <witchbutter at gmail.com>
> Date: 10/23/2015 3:14 PM (GMT-07:00)
> To: CLUE's mailing list <clue at cluedenver.org>
> Subject: Re: [clue] Setting FQDN on RHEL7.
>
> Modify /etc/hostname and restart.  When using DHCP I also put
> DHCP_HOSTNAME=hostname.foo.com at the end of
> /etc/sysconfig/network-scripts/ifcfg-eno1234 or whatever number your
> interface is.
>
> David L. Willson <DLWillson at TheGeek.NU>
> October 23, 2015 at 2:54 PM
> hostnamectl I think
>
>
>
> Sent from my Verizon Wireless 4G LTE smartphone
>
>
> -------- Original message --------
> From: "David L. Anselmi" <anselmi at anselmi.us> <anselmi at anselmi.us>
> Date: 10/23/2015 2:37 PM (GMT-07:00)
> To: CLUE <clue at cluedenver.org> <clue at cluedenver.org>
> Subject: [clue] Setting FQDN on RHEL7.
>
> So I have a RHEL7 machine and I want "hostname --fqdn" to return "
> foo.example.com".  Right now it
> just returns "foo".
>
> Googling around suggested setting things in /etc/hosts or
> /etc/sysconfig/network but those don't
> seem to work.  Or is there something I need to restart after making a
> change?
>
> Thanks for the help!
>
> Dave
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue
>
>
>
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20151026/4656a130/attachment.html 


More information about the clue mailing list