How to add multiple dns entries with netsh?

If you want to add multiple dns entries using the netsh utility, you can do it by using the following commands.

netsh interface ip add dns “Local Area Connection” 10.0.0.53
netsh interface ip add dns “Local Area Connection” 10.0.0.54 index=2

To remove a dns entry, you can use the following command

netsh interface ip delete dns “Local Area Connection” 10.0.0.53