code: func (fl *Flags) SetDefaultsFromHostname() {
  	if fl.SysInfo == nil {
  		hostname, region := getFQDN()
  		fl.SysInfo = &SysInfo{Hostname: hostname, Region: region}
  	}
  	network := getNetwork(fl.SysInfo.Hostname)
  	hostname := fl.SysInfo.Hostname
  
  	if fl.DeviceHostname == "" {
  		fl.DeviceHostname = hostname
  	}
  	if fl.DeviceRegion == "" {
  		fl.DeviceRegion = fl.SysInfo.Region
  	}
  	if fl.DeviceNetwork == "" {
  		fl.DeviceNetwork = network
  	}
  	if fl.TaskRegion == "" {
  		fl.TaskRegion = fl.SysInfo.Region
  	}
  	if fl.TaskHostname == "" {
  		fl.TaskHostname = hostname
  	}
  	if fl.AutoGenHostname {
  		fl.DeviceHostname = "autogen:" + fl.DeviceHostname
  		fl.TaskHostname = "autogen:" + fl.TaskHostname
  	}
  }
docs: // SetDefaultsFromHostname computes the expensive default values for hostname,
  // region and network fields.