I just creat setdns.cmd
file to set dns
setdns.cmd
@cls
@set /p primary="Enter Primary dns : "
@set /p alternative="Enter Alternative name : "
@netsh interface ip set dns "Wi-Fi" static %primary%
@netsh interface ip add dns name="Wi-Fi" addr="%alternative%" index=2
@pause
now Im trying to make delete.cmd
to delete DNS but i do not know how to delete DNS by command
delete.cmd
some command here ???
I tried these commands but it didn’t work
netsh interface ip set dns "Wi-Fi" static "Empty"
netsh interface ip delete dns "Wi-Fi" static all
1