Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


name-server (System Services)



Hierarchy Level

Release Information

Statement introduced before Junos OS Release 7.4.

routing-instance options introduced in Junos OS Release 19.2R1 under the [edit system] hierarchy level only.


Configure one or more Domain Name System (DNS) name servers.


addressAddress of the name server. To configure multiple name servers, include a maximum of three address options.
routing-instance routing-instanceConfigure name of the routing instance through which the name server is reachable.

The only routing instance supported is mgmt_junos. Also, this routing instance command is not supported on SRX Series devices.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.