Install Bind 9 Slave Name Server

Install the bind9 packaged apt install bind9 bind9utils bind9-doc Modify /etc/bind/named.conf.options acl "slaves" { 10.255.0.0/16; }; acl "internal" { 10.255.0.0/16; 192.168.5.0/24; 192.168.222.0/24; }; — and to the options section: allow-recursion { internal; }; listen-on { 10.255.1.177; }; allow-transfer { none; }; forwarders { 8.8.8.8; 8.8.4.4; }; — comment out local zones from named.conf — Create all the zone files. — Set permissions on zone files

Mikrotik router: Change MAC address on VLAN interface

Change the MAC address on the vlan interface

I needed to change MAC address of the vlan interface for my router. According to https://wiki.mikrotik.com/wiki/Change_MAC_address_of_VLAN_interface you need to create a bridge for that

In the following example wan is a vlan interface that needs to be changed MAC

/interface bridge add name=bridge_wan disabled=no
/interface bridge port add bridge=bridge_wan disabled=no interface=wan

Mikrotik Register DHCP clients with DNS

I want to have my DHCP leases to be registered in the local DNS cache.

To prepare you put a comment into the DHCP lease which will be treated as the client DNS name. If comment is missing then DNS name will be set to client id (which would depend on client OS)