Redirects DNS IP addresses
from foreign networks matching an IP address in this command to
a home network DNS.
Platform:
ASR 5000
ASR 5500
Privilege:
Security Administrator,
Administrator
Syntax
[ no ] redirect any [ primary-dns ip_address [ secondary-dns ip_address ] ]
no
Removes the DNS IP
address from the redirect rule.
primary-dns ip_address
Specifies the IP address
of the primary home network DNS.
ip_address is
specified using IPv4 dotted-decimal or IPv6 colon-separated-hexadecimal
notation.
secondary-dns ip_address
Specifies the IP address
of the secondary home network DNS.
ip_address is
specified using IPv4 dotted-decimal or IPv6 colon-separated-hexadecimal
notation.
Usage:
Use this command to
identify DNS IP addresses from foreign networks that are to be redirected
to the home DNS. For a more detailed explanation of the Proxy DNS
feature, see the proxy-dns intercept-list command in the Context Configuration
Mode Commands chapter. A maximum of 16 intercept rules (either redirect or pass-thru)
are allow for each intercept list.
Since this command
is configured in the source context, the destination context containing the
path to the home network DNS is identified using the Context Configuration
Mode command ip
dns-proxy source-address.
IMPORTANT:
If a packet does not
match the pass-thru or redirect rule,
the packet is dropped. If primary-dns or secondary-dns is
not configured, DNS messages are redirected to the primary-dns-server
(or the secondary-dns-server) configured for the subscriber OR inside
the context.
Example:
The following command
identifies a foreign network DNS with an IP address of
10.2.55.12 and
redirects it to a primary home network DNS with an IP address of
10.3.4.5:
predirect 10.2.55.12
primary-dns 10.3.4.5