To configure Network Address Translation–Protocol Translation (NAT-PT), you must configure a Domain Name System application-level gateway (DNS ALG) application to map addresses returned in the DNS response to an IPv6 address. DNS ALG is used with NAT-PT to facilitate name-to-address mapping. When configuring NAT-PT, network address translation can either be an address-only translation or an address and port translation. The Junos OS implementation is described in RFC 2766 and RFC 2694.
Before you begin configuring NAT-PT with DNS ALG, you must have the following configured:
To configure NAT-PT with DNS ALG:
Configure the DNS session that processes packets to the DNS server:
For example:
In the following example, the application name is dns_alg.
The following example shows the configuration of the 96-bit prefix for mapping IPv4 address to IPv6 addresses.
The following sample output shows the minimum configuration of the application.
[edit applications]
user@host# show
application dns_alg {
application-protocol dns;
}
The following sample output shows the minimum configuration of the first NAT rule.
[edit services nat]
user@host# show
rule rule1 {
applications dns_alg;
}
then {
translated {
dns-alg-prefix 10:10:10::0/96;
}
}
}
}
}
The following sample output shows the minimum configuration of the second NAT rule.
[edit services nat]
user@host# show
rule rule2 {
term term1 {
from {
destination-address {
10:10:10::c0a8:108/128;
}
}
then {
translated {
source-prefix 19.19.19.1/32;
}
}
}
}
}