Supported Platforms
Specifying the Parsing Direction for Domain Names
You can specify the direction in which the router performs the parsing operation it uses to identify subscriber domain names for domain maps. During the parsing operation, the router searches the username until it recognizes a delimiter. It then considers anything to the right of the delimiter as the domain. By default, the router parses from right to left, starting at the right-most character in the username.
The parsing direction you use is important when there are nested domain names. For example, for the username user1@abc.com@xyz.com, right-to-left parsing produces a domain name of xyz.com. For the same username, left-to-right parsing produces a domain name of abc.com@xyz.com.
To configure the domain name parsing direction for domain maps:
- Specify that you want to configure domain attributes.[edit]user@host# edit access domain
- Specify the parsing direction you want the router to use.[edit access domain]user@host# set parse-direction (left-to-right | right-to-left)