To configure the name of the domain in which clients will search for a DHCP server host, include the domain-name statement:
-
domain-name domain;
You can include this statement at the following hierarchy levels:
- [edit system services dhcp]
- [edit system services dhcp pool]
- [edit system services dhcp static-binding]
The domain-name statement sets the domain name that is appended to hostnames that are not fully qualified. This statement is optional. If you do not configure a domain name, the default is the client’s current domain.
To configure a domain search list, include the domain-search statement:
-
domain-search [ domain-list ];
You can include this statement at the following hierarchy levels:
- [edit system services dhcp]
- [edit system services dhcp pool]
- [edit system services dhcp static-binding]
The domain-search statement sets the order in which clients append domain names when searching for the IP address of a host. You can include one or more domain names in the list. For more information, see RFC 3397, Dynamic Host Configuration Protocol (DHCP) Domain Search Option.
The domain-search statement is optional, if you do not configure a domain search list, the default is the client’s current domain.