dn_from_domain
Use the dn_from_domain command to convert a specified domain name in dotted form (acme.com, for example) to a distinguished name (DN). This conversion doesn’t require lookup in Active Directory. The command performs a simple text conversion.
Zone Type
Not applicable
Syntax
dn_from_domain domain_name
Abbreviation
dnfd
Options
This command takes no options.
Arguments
This command takes the following argument:
| Argument | Type | Description |
|---|---|---|
| domain_name | string | Required. Specifies a dotted domain name (acme.com, for example) |
Return Value
This command returns a domain name as a distinguished name.
Examples
dn_from_domain acme.com
This example returns the domain name in this form: dc=acme,dc=com
Related Commands
The following commands convert information from one format to another:
domain_from_dnconverts a domain’s distinguished name (DN) to a dotted name.dn_to_principalreturns the sAMAccount@domain name or user principal name (UPN) for a security principal.