I want to change DNS servers programmatically. I don\'t want to build a DNS server, I just want to change the primary and secondary dns servers automatically. This work need
You can call a command line tool to do it for you with os.system.
import os os.system('netsh interface ip set dns "Local Area Connection" static 192.168.0.200')