To configure Content Gateway as a DNS proxy cache:
- Add a remap rule in the ipnat.conf file.
- Enable the DNS proxy option and specify the port that Content Gateway will use for DNS proxy traffic.
- Configure your layer 4 switch or WCCP router to send DNS traffic on port 53 to Content Gateway.
Important: You can use the DNS proxy caching option only with a layer 4 switch or a Cisco router running WCCP v2.
In the Content Gateway manager:
Steps
-
Go to the tab.
-
Under Redirection Rules, click Edit File to open the file editor for the ipnat.conf file.
-
Enter the following information:
- Enter the Content Gateway Ethernet Interface to which client DNS requests are routed. For example, eth0.
- In the Connection Type drop-down list, select udp.
- In the Destination IP field, enter 0.0.0.0 to accept DNS requests from all clients.
- (Optional) In the Destination CIDR field, enter the CIDR mask value. If you have specified 0.0.0.0 in the Destination IP field, enter 0 here.
- In the Destination Port field, enter the port on which DNS requests are sent to Content Gateway (53, by default).
- In the Redirected Destination IP field, enter the IP address of Content Gateway.
- In the Redirected Destination Port field, enter the port that Content Gateway uses to communicate with the DNS server (5353, by default).
- In the User Protocol drop-down list, select dns.
-
Click Add, then click Apply, and then click Close. Postpone the prompted restart until step 8.
-
Go to the page.
-
Under , enable DNS Proxy and click Apply. Postpone the prompted restart until step 8.
-
Go to the page.
-
Enter the DNS Proxy Port (5353, by default).
-
Click Apply and restart Content Gateway.
-
Configure your layer 4 switch or WCCP v2 router to send DNS traffic to the Content Gateway DNS port (53, by default).