forest_from_domain
Use the forest_from_domain
command to retrieve the forest name based on the domain name. The command also stores the retrieved forest name in memory.
Zone type
Not applicable
Syntax
forest_from_domain [-nocache] <domain>
Abbreviation
ffd
Options
This command takes the following option:
Option | Description |
nocache |
Use this option to force fetch the forest name from Active Directory instead of reading the forest name from in memory. |
Arguments
This command takes the following argument:
Argument | Type | Description |
domain |
string |
Required. Specifies the domain for which you want to retrieve the forest. |
Return value
This command returns the forest name (in upper case text).
Examples
>forest_from_domain 5027f1d2.test
5027F1D1.TEST
>ffd 5027f1d2.test
5027F1D1.TEST