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.

Statement introduced in Junos OS Release 9.0 for EX Series switches.

Statement introduced in Junos OS Release 11.1 for the QFX Series.

Statement introduced in Junos OS Release 14.1X53-D20 for the OCX Series.

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.

Required Privilege Level

system—To view this statement in the configuration.

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