09-15-2014 05:06 PM
I am attempting to use chef to manage some files on our EdgeRouters. In order to do this, I need the system to give the FQDN when requesting hostname from the OS. By default, the EdgeRouter seems to only use the hostname and does not tack on the domain name to it. If I edit the /etc/hostname file and set router.some.fqdn.place, I get the system to report the FQDN. However, when I reboot, the /etc/hostname file is regenerated with only the host name (router) and without the domain name. Regardless, this is not ideal since the hostname / domain name can be adjusted in the GUI, and will regenerate all related files anyways if changed.
Is there a way to get the system to actually use the FQDN?
$ hostname --fqdn