A DNS server is required to support HTTP proxies to resolve the name of any HTTP proxy, even if the name is valid only in the private domain of the client. You can use an external DNS or the DNS server that is included with the redirect server for this purpose.
If you plan to use an external DNS server, you can skip this section. This section describes how to configure the DNS server that is included with the redirect server.
Use the following configuration statements to configure the DNS server that is included with the redirect server:
- redirect-server dns {
- enable;
- tcp-port tcp-port;
- udp-port udp-port;
- forwarder forwarder;
- error-ip-address error-ip-address;
- }
To configure DNS for the redirect server that is included with the redirect server:
- user@host# edit redirect-server dns
- [edit redirect-server dns]
- user@host# set enable
If you set the value to 0, no TCP socket is opened.
- [edit redirect-server dns]
- user@host# set tcp-port tcp-port
- [edit redirect-server dns]
- user@host# set udp-port udp-port
- [edit redirect-server dns]
- user@host# set forwarder forwarder
For example:
- [edit redirect-server dns]
- user@host# set forwarder 192.0.2.24,192.0.4.25
If you do not specify DNS servers, DNS resolves incoming requests by using the normal DNS method.
- [edit redirect-server dns]
- user@host# set error-ip-address error-ip-address