How does QAS determine the computers FQDN during a join?
QAS needs to construct a valid FQDN in order to successfully join to Active Directory.
QAS will use the name specified in the [-n <name>] if set, otherwise QAS will call gethostname() (similar to running /bin/hostname) to determine the hostname.
If the name has been specified as FQDN or gets a FQDN from the gethostname() call the join will be done determining the name. If not, it now has a <shortname> to work with to create a FQDN.
QAS will then make a second call, gethostbyname(<shortname>). If that returns a FQDN it again is finished, if not, then QAS will query any aliases for a FQDN. If is finds one it has finished.
This means if you have an /etc/hosts entry as so:
192.168.1.1 host1.example.com host1 alias1
And run the join command as vastool ... join -n alias1 .... then it will find host1.example.com as a valid FQDN for the given name, and use that.
If it is desired to use the alias1 name, specify it using -n with an FQDN.
As a final catch-all method, if the gethostbyname doesnt return a value, then QAS generates a FQDN using the following:
<shortname>.<joined domain name>