Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SHSharkar/2d76c52cc731a550506bcdd73c6e5ce9 to your computer and use it in GitHub Desktop.
Save SHSharkar/2d76c52cc731a550506bcdd73c6e5ce9 to your computer and use it in GitHub Desktop.
MikroTik Router set DHCP Servers DNS Server from Terminal

MikroTik Router set DHCP Servers DNS Server from Terminal

/ip dhcp-server network set 0 dns-server=1.1.1.1,1.0.0.1

Demonstration with Cloudflare's 1.1.1.1 DNS.

Please note, set 0 means applying the DNS Server change for interface 1. If you have multiple DHCP Server interface, you will have to mention the number of the interface. Normally starts with 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment