Kernel mode routine DNS records system

BeginnerKernel 0 Reputation points
2023-08-08T09:20:23.1266667+00:00

Hi

I am trying to get all DNS records on system in kernel mode.

Something similar ipconfig /displaydns gives all of that information
As far as I know user mode API DnsGetCacheDataTable which gives me list of DNS records on system.
There might some way to get these DNS records at kernel mode as well, that can be used to get system DNS records.

I am looking for kernel mode routine that can be used to get DNS records, any help appreciated.

Thanks in advance.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-08-08T15:40:50.43+00:00

    Try via PowerShell.

    https://learn.microsoft.com/en-us/powershell/module/dnsclient/get-dnsclientcache?view=windowsserver2022-ps

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. BeginnerKernel 0 Reputation points
    2023-12-06T10:24:05.1066667+00:00

    @Dave Patrick I am looking for kernel mode routine something like similar to DnsGetCacheDataTable

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.