# dns-server

#### Syntax

dns-server ipAddressPrimary [ ipAddressSecondary ]

no dns-server

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Assigns a DNS server to an address pool. The no version removes the association between the address pool and the DNS server.

#### Options

- ipAddressPrimary—IP address of preferred DNS server
- ipAddressSecondary—IP address of secondary DNS server

#### Mode

DHCP Local Pool Configuration