Blog posts

2026 1

29 minute read
rust actix-web

Rust Study

Rust Actix-Web Learning

2024 3

less than 1 minute read
Windows API C++

Windows Coding

How to get DNS Server for particular adapter on Windows

  1. Retrieve addresses information about adapter through API:GetAdapterAddress(…)
  2. Loop to check whether current pointer points to the adapter specified by verify the attributes like FirstUnicastAddress.
  3. if the pointer points to the specified adapter, FirstDnsServerAddress data member points to the head of the linked list which stores the list of dns server for the specified adapter.