Resolving IP Addresses into Hostnames in Windows Kernel Driver

I am writing a Windows 10 Kernel Driver in which I need to resolve IP addresses into corresponding hostnames. Can this be done using Winsock Kernel Operations?

  1. How to do it?
  2. What lookup order does Windows follow when we resolve hostnames at kernel?