Picking a DHCP hostname to static DNS script

One tip, hostname updating scripts based on timer are most likely written for old RouterOS, where DHCP lease script didn’t exist. I’d avoid them, because it’s waste of resources to check again and again, even though nothing changed.

And about linked config generator for DNS redirection, it will work, but:

  • can have many false positives, find some inspiration for better regexp in this thread
  • checking tcp connections is useless, because when it finds the query in packet, connection is already established and can’t be redirected anymore