| << Back to previous view |
[QB-3605] A node attribute to return fully qualified domain name
|
|
| Status: | Closed |
| Project: | QuickBuild |
| Component/s: | None |
| Affects Version/s: | 10.0.21 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major |
| Reporter: | Robin Shen | Assigned To: | Robin Shen |
| Resolution: | Won't Fix | Votes: | 0 |
| Remaining Estimate: | Unknown | Time Spent: | Unknown |
| Original Estimate: | Unknown | ||
| Description |
|
Hostname on Windows build agents are not fully qualified with domain
Our Linux build agents return a fully qualified hostname xyz.test.com But Windows only returns xyz. This seems to be a difference in the hostname os command between windows and linux. We use the Node hostname in a lot of places and can have same hostname in 2 different domains. Is there some way to override using "hostname"? Maybe if os = windows instead of "hostname" os command Execute: net config workstation | findstr /C:"Full Computer name" Or Java code use: InetAddress.getLocalHost().getCanonicalHostName() |