Determine the Maximum Host Name Length in Linux with HOST_NAME_MAX
“If anyone wondered what is the max length of hostname you can use (solutions and guess over the internet already), but just itching to write down how to find out. Here’s how..
krish@lin-hyd-dsk-07:~> getconf HOST_NAME_MAX
This is defined in file
krish@lin-hyd-dsk-07:~> grep HOST_NAME_MAX /usr/include/bits/local_lim.h
#define HOST_NAME_MAX 64″
Log in to answer.
Copyright © dBuggr.com - All Rights Reserved.