<div dir="ltr">Yeah, in RHEL7 the recommended method is:<div><br></div><div>hostnamectl set-hostname <fqdn></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 23, 2015 at 4:21 PM, David L. Willson <span dir="ltr"><<a href="mailto:DLWillson@thegeek.nu" target="_blank">DLWillson@thegeek.nu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div>I think hostnamectl does those things.</div><span class=""><div><br></div><div><br></div><div><br></div><div><div style="font-size:85%;color:#575757">Sent from my Verizon Wireless 4G LTE smartphone</div></div><br><br>-------- Original message --------<br></span><div><div class="h5">From: P B <<a href="mailto:witchbutter@gmail.com" target="_blank">witchbutter@gmail.com</a>> <br>Date: 10/23/2015 3:14 PM (GMT-07:00) <br>To: CLUE's mailing list <<a href="mailto:clue@cluedenver.org" target="_blank">clue@cluedenver.org</a>> <br>Subject: Re: [clue] Setting FQDN on RHEL7. <br><br>Modify /etc/hostname and
restart. When using DHCP I also put DHCP_HOSTNAME=<a href="http://hostname.foo.com" target="_blank">hostname.foo.com</a> at
the end of /etc/sysconfig/network-scripts/ifcfg-eno1234 or whatever
number your interface is.<br>
<span>
</span><br>
<blockquote style="border:0px none" type="cite">
<div style="margin:30px 25px 10px 25px"><div style="width:100%;border-top:1px solid #edeef0;padding-top:5px"> <div style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%">
        <a href="mailto:DLWillson@TheGeek.NU" style="color:#737f92!important;padding-right:6px;font-weight:bold;text-decoration:none!important" target="_blank">David L. Willson</a></div> <div style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:right"> <font color="#9FA2A5"><span style="padding-left:6px">October
23, 2015 at 2:54 PM</span></font></div> </div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px">
<div>hostnamectl I think</div><div><br></div><div><br></div><div><br></div><div><div style="font-size:85%;color:#575757">Sent
from my Verizon Wireless 4G LTE smartphone</div></div><br><br>--------
Original message --------<br>From: "David L. Anselmi"
<a href="mailto:anselmi@anselmi.us" target="_blank"><anselmi@anselmi.us></a> <br>Date: 10/23/2015 2:37 PM (GMT-07:00) <br>To:
CLUE <a href="mailto:clue@cluedenver.org" target="_blank"><clue@cluedenver.org></a> <br>Subject: [clue] Setting FQDN on
RHEL7. <br><br>So I have a RHEL7 machine and I want "hostname --fqdn" to
return "<a href="http://foo.example.com" target="_blank">foo.example.com</a>". Right now it <br>just returns "foo".<br><br>Googling
around suggested setting things in /etc/hosts or /etc/sysconfig/network
but those don't <br>seem to work. Or is there something I need to
restart after making a change?<br><br>Thanks for the help!<br><br>Dave<br>_______________________________________________<br>clue
mailing list: <a href="mailto:clue@cluedenver.org" target="_blank">clue@cluedenver.org</a><br>For information, account
preferences, or to unsubscribe see:<br><a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br><div>_______________________________________________<br>clue
mailing list: <a href="mailto:clue@cluedenver.org" target="_blank">clue@cluedenver.org</a><br>For information, account
preferences, or to unsubscribe see:<br><a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a></div></div>
</blockquote>
<br>
</div></div></div><br>_______________________________________________<br>
clue mailing list: <a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
For information, account preferences, or to unsubscribe see:<br>
<a href="http://cluedenver.org/mailman/listinfo/clue" rel="noreferrer" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br></blockquote></div><br></div>