Scheduled maintenance: Community will be offline Monday June 17th, 1:00 AM - 6:00 AM (PT)
New Member
Posts: 11
Registered: ‎04-08-2014
Kudos: 8

Using FQDN instead of just the hostname

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 serouter.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
router


$ hostname --fqdn
router

 

 

Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5481
Solutions: 1656
Contributions: 2

Re: Using FQDN instead of just the hostname

That may be related to the use of busybox for the hostname tool, and we'll need to look into it. Thanks for reporting.

Member
Posts: 102
Registered: ‎07-31-2016
Kudos: 16
Solutions: 2

Re: Using FQDN instead of just the hostname

How's progress on this?