<html><head></head><body><div class="ydp5da23fe3yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">Did that work?</div><div dir="ltr" data-setdir="false">Great question by the way.</div><div><br></div>
        
        </div><div id="yahoo_quoted_4469347475" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                        On Monday, August 19, 2024 at 04:30:31 PM MST, Keith Smith via PLUG-discuss <plug-discuss@lists.phxlinux.org> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                
                
                <div><div dir="ltr">Solution  :  hostnamectl set-hostname --transient <hostname><br clear="none"><br clear="none">It appears there is a thing called transient hostname.<br clear="none"><br clear="none"><br clear="none"><br clear="none">On 2024-08-19 09:10, Keith Smith via PLUG-discuss wrote:<br clear="none">> Hi,<br clear="none">> <br clear="none">> I am changing the hostname on Ubuntu 24.04LTS server.<br clear="none">> <br clear="none">> I do the following:<br clear="none">> <br clear="none">> Change the hostname using sudo vi /etc/hostname<br clear="none">> Change the hostname using sudo vi /etc/hosts<br clear="none">> Restart : sudo systemctl restart systemd-hostnamed<br clear="none">> Verify with : hostnamectl which returns the new hostname<br clear="none">> <br clear="none">> However when I issue the command "hostname" it gives me the old <br clear="none">> hostname.<br clear="none">> <br clear="none">> When I do a reboot the command hostname give the new hostname.<br clear="none">> <br clear="none">> Any thoughts why this is?<br clear="none">> <br clear="none">> Thanks!!<br clear="none">> Keith<br clear="none">> ---------------------------------------------------<br clear="none">> PLUG-discuss mailing list: <a shape="rect" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br clear="none">> To subscribe, unsubscribe, or to change your mail settings:<br clear="none">> <a shape="rect" href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><div class="yqt8337689918" id="yqtfd22948"><br clear="none">---------------------------------------------------<br clear="none">PLUG-discuss mailing list: <a shape="rect" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br clear="none">To subscribe, unsubscribe, or to change your mail settings:<br clear="none"><a shape="rect" href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br clear="none"></div></div></div>
            </div>
        </div></body></html>