Skip to content

Instantly share code, notes, and snippets.

@benosman
benosman / dhcp2dns.rsc
Last active September 19, 2022 12:44 — forked from SmartFinn/dhcp-leases-to-dns.rsc
MikroTik (RouterOS) script for automatically setting DNS records for clients when they obtain a DHCP lease
# MikroTik (RouterOS) script for automatically setting DNS records
# for clients when they obtain a DHCP lease.
#
# authors:
# SmartFinn <https://gist.github.com/SmartFinn>
# elevendroids <https://gist.github.com/elevendroids>
:local dnsTTL "00:15:00";
:local token "$leaseServerName-$leaseActMAC";
:local LogPrefix "[dhcp2dns]($leaseServerName | $leaseActMAC)"
@benosman
benosman / gist:e9cde12231b4bda05cc60179719eaef7
Created September 22, 2016 21:00 — forked from gmasse/gist:4b0c34be3d797cd729d2
OVH custom iPXE boot (dedicated server)

iPXE customer script (BETA)

Booting your server with your own iPXE script allows cool things like:

  • running diskless bare-metal system like CoreOS, SmartOS, ...
  • recovering with your own Rescue system or bare-metal restore tools (like Acronis and Idera)
  • launching Standard installer like ESXi, Linux, Solaris, ...

How ? Using directly the RESTful API EU|CA or the API console EU|CA.