Skip to content

Instantly share code, notes, and snippets.

@aejh
Created February 2, 2021 15:29
Show Gist options
  • Save aejh/672c9f5c834547e5f9fe4539d4973597 to your computer and use it in GitHub Desktop.
Save aejh/672c9f5c834547e5f9fe4539d4973597 to your computer and use it in GitHub Desktop.
Mikrotik static DNS records to hostsfile
ssh 10.0.0.1 /ip dns static print terse without-paging | sed -n 's/.*name=\(.*\) address=\([0-9.]*\) .*/\2 \1/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment