How do I handle the error message "Hostname is larger than 15 characters"?

Issue: Users receiving error message that hostname is large than 15 characters, even though hostname contains 15 or less characters in hostname. 

Affected devices: NETGEAR devices when integrated with Active Directory (AD).

Symptoms: The Hostname file contains the domain name of the AD.

Eg: AD is and hostname of Netgear is egnyte1. The hostname file under /etc/hostname is as

Total count of characters of host name is more than 15 characters as it contains Domain+ Hostname 


  1. SSH into Netgear device and edit the hostname file

vi /etc/hostname

Edit the file to only include the NETGEAR hostname e.g. Instead of it should only display egnyte1.

Save and exit the hostname file edit


Run the hostname script as


The above steps will make sure hostname remains same.

Egnyte Community

Egnyte Community

Want to connect with other Egnyte users and our Egnyte team? Share ideas and ask questions in our Community .