Configuring Hostname and Domain Parameters
To set hostname and domain parameters:
- Enter configuration mode.root@host> edit
- Configure the hostname.[edit]root@host# set system host-name host-name
For example:
[edit]root@host# set system host-name my-hostname - Configure either a list of domain names
to search, or create the domain name. We recommend configuring a list
of domain names to search.
To configure a list of domain names to search:
[edit]root@host# set system domain-search [domain-name1, domain-name2, ...]For example:
[edit]root@host# set system domain-search [my-domain.juniper.net domain.juniper2.net]To configure the domain name:
[edit]root@host# set system domain-name domain-nameFor example:
[edit]root@host# set system domain-name my-domain.juniper.net