--- title: "AppGate DNS Policies and NSLookup" slug: "appgate-dns-policies-and-nslookup" description: "Learn how AppGate DNS policies utilize the Name Resolution Policy Table for effective DNS management on Windows, ensuring accurate name resolution." updated: 2025-12-13T13:55:40Z published: 2025-12-13T13:55:40Z canonical: "support.appgate.com/appgate-dns-policies-and-nslookup" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.appgate.com/llms.txt > Use this file to discover all available pages before exploring further. # AppGate DNS Policies and NSLookup AppGate DNS policies use the Name Resolution Policy table (NRPT). "Name Resolution Policy Table" is a feature exclusive to Windows operating systems, allowing administrators to define specific DNS servers for different namespaces, essentially controlling where DNS resolution requests are sent based on the domain name being queried. See [https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn593632(v=ws.11)](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn593632(v=ws.11)). So, when Windows performs DNS name resolution, it checks the NRPT before it sends a DNS query. If a DNS query matches an entry in the NRPT, it is handled according to settings in the table. DNS queries that do not match an NRPT entry are processed by querying the default DNS servers in a normal manner. If DNS has been configured using a DNS Policy then "**ipconfig /al**l" will not show the DNS servers configured by AppGate SDP, instead, there is a useful PowerShell command available to check the settings: "**Get-DnsClientNrptPolicy -Effective***"* ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/appgate-dns-policies-and-nslookup-image-td40y7up.png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A43%3A52Z&se=2026-11-22T14%3A43%3A52Z&sr=b&sp=r&sig=N5fBPPXAW8GbS0V3iYvk6%2Fi%2FdWQz98mOehEoDkh7iog%3D) Additionally using ***nslookup*** on Windows doesn't use the OS resolver so the NRPT settings are not used. The better solution to getting the true DNS name is to use the **ping** command to check DNS resolution ### **ping hostname** ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/appgate-dns-policies-and-nslookup-image-ogl8h0ek.png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A43%3A52Z&se=2026-11-22T14%3A43%3A52Z&sr=b&sp=r&sig=5%2BKxO0dTVdFqwEjh%2BETnC1djciVal%2FuSpZ%2Ba%2BwanmTU%3D) or the following DnsClient cmdlet command instead: **Resolve-DnsName** ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/appgate-dns-policies-and-nslookup-image-fad8s1z3.png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A43%3A52Z&se=2026-11-22T14%3A43%3A52Z&sr=b&sp=r&sig=tNJM85fXxWAGTM6EEmvfBT6MaY3yWRpF4zWjtAlGfQk%3D) Using *nslookup* with a second argument designating a DNS name server in the command should also generally work. If a DNS name server is omitted then nslookup will use the default dns name server which should not provide accurate data when NRPT/AppGate DNS policies are used. ### **nslookup hostename *(dns server)*** ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/appgate-dns-policies-and-nslookup-image-lnaxujdm.png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A43%3A52Z&se=2026-11-22T14%3A43%3A52Z&sr=b&sp=r&sig=dhkOX6vSQ11hCpYMM%2Fi%2FNhhrH5gvzWtp2heMrZFU23M%3D) Below are links to relevant articles about looking up addresses Stack Overflow article about NRPT and DNS queries: - [https://stackoverflow.com/questions/60144350/why-dont-nrpt-rules-affect-dns-queries-on-my-windows-10-box](https://stackoverflow.com/questions/60144350/why-dont-nrpt-rules-affect-dns-queries-on-my-windows-10-box) Superuser article about nslookup vs ping and resolve dnsname commands: - [https://superuser.com/questions/1326894/nslookup-fails-while-ping-a-and-resolve-dnsname-dnsonly-succeeds](https://superuser.com/questions/1326894/nslookup-fails-while-ping-a-and-resolve-dnsname-dnsonly-succeeds) The remarks section talks about omitting the DNS name server: 1. [https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup)