Hi!!

I'm interested in simulating LAN's repair option. Exactly I am interested in these two steps:

  • Domain Name System (DNS) cache is flushed: ipconfig /flushdns

  • DNS name registration: ipconfig /registerdns


I can be able to flush cached DNS (I use undocumented dnsapi function) but I don't know how I can make step two! I don't know which api functions I should use.

Someone has any idea?

Thanks in advance!