JUNOSe 11.1.x System Basics Configuration Guide
Figure 24: DNS Hierarchy Example
DNS messages from a name resolver to a name server must include the domain
name for the resolver's clients. Consequently, you must specify a default domain
name for the clients. The default domain name is appended to unqualified hostnames
(those without domain names).
The name resolver must be able to access at least one name server. Accordingly,
you must configure a static route to a gateway that provides access to the name
server and assign the name server to the name resolver. For more information, see
"Assigning Name Servers" on page 320.
Each virtual router can have its own name resolver and domain name. However, if
two virtual routers use the same name servers and belong to the same local domain,
you do not need to configure name resolvers on both virtual routers. For more
information, see "Using One Name Resolver for Multiple Virtual Routers" on page 322.
References
For more information about the DNS, consult the following resources:
Assigning Name Servers
To assign name servers to the system:
1.
2.
3.
4.
5.
Example
320
Configuring DNS
RFC 1035 Domain Names – Implementation and Specification (November
1987)
RFC 2308 Negative Caching of DNS Queries (DNS NCACHE) (March 1998)
Access the virtual router context.
Define static routes to the gateways that provide access to the name servers.
Enable the virtual router to query name servers.
Specify a default domain name for the hosts.
Specify the name servers.
host1(config)#virtual-router boston
host1:boston(config)#ip route 0.0.0.0 0.0.0.0 gatewayIpAddress
host1:boston(config)#ip domain-lookup