DNS Doctoring allows the firewall to change the embedded IP addresses in Domain Name System (DNS) responses so that clients can connect to the correct IP address of servers.
DNS Doctoring performs two functions:
In this KB article, we will translate the public address to a private address for external web server like www.yahoo.com.

From your pc client run nslookup to check the current dns resolution like:
cmd > nslookup www.yahoo.com

This release includes significant user interface changes and many new features that are different from the SonicOS 6.5 and earlier firmware. The below resolution is for customers using SonicOS 7.X firmware.




How to test it?
From your Windows pc client run a flushdns and wait few seconds. Then you should see the new internal private IP resolution for www.yahoo.com.
cmd > ipconfig /flushdns

How It Works:
When internal clients query an external DNS server for the public IP of an internal resource (e.g., a web server), the DNS response containing the public IP is intercepted by the SonicWall firewall. DNS Doctoring will then replace the public IP in the DNS response with the private IP of the internal server. The internal clients will use the private IP to connect to the server, avoiding routing traffic through the public IP interface.This allows internal users to resolve internal resources using the correct private IP addresses without needing to change their DNS settings.