[clue] Setting FQDN on RHEL7.

Mike Nolte obiwanmikenolte at gmail.com
Fri Oct 23 14:46:06 MDT 2015


I'm not sure which OS you're on, but setting it right after the loopback in
/etc/hosts works every time that I've tried it.  e.g.

127.0.0.1 foo.example.com localhost <etc>

On Fri, Oct 23, 2015 at 2:37 PM, David L. Anselmi <anselmi at anselmi.us>
wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20151023/8f09a093/attachment.html 


More information about the clue mailing list