DNS hostnames management and VPN connection issue

January 05, 2023

Reverse DNS lookup

To view hostnames instead of IP adresses in clients logs do following:

  • On router Set static DNS address names
add records in 
ip->dns->static
  • On adguard
add dns server in
settings->dns settings->Private reverse DNS servers

Search domain

https://en.wikipedia.org/wiki/Search_domain

As clients share domain, we might want to set up on dhcp level, default search option for certain ip pool

ip->dhcp server->options->add new

name: domain-search-option
Code: 119
value: 0x09'szajowski'0x03'dev'0x00

Now we need to set dhcp option for our networks

ip->dhcp server->networks->{address pool}->dhcp options (pick just created option: 'domain-search-option')

Mikrotik foribds VPN users to connect to WAN

In mikrotik there is a rule that by default drops certain packets:

defconf: drop all not coming from LAN

To resolve it, add new rule for input having source of vpn address range like: 192.168.1.0/24 with action accept


2022-2024