Hi,
I’m using this script (https://tolaris.com/2014/09/27/synchronising-dhcp-and-dns-on-mikrotik-routers/) in order to create DNS entries for DHCP clients.
So for example, if a client with host name “Desktop-PC” receives from DHCP the IP Address “192.168.1.5”, on another client can do “Ping Desktop-PC”.
Obviously all the clients have Mikrotik IP Addess such as DNS Server.
This works perfectly for clients directly connected to the Mikrotik Router.
I also have configured OpenVPN on that Mikrotik. On the OpenVPN configuration i have specified Mikrotik IP Address such as DNS Server.
I have a strange behavior on the client: if i do nslookup i receive:
C:\Users\aless>nslookup printer
Server: UnKnown
Address: 10.3.100.1
Risposta da un server non autorevole:
Nome: printer
Address: 10.1.100.71
10.3.100.1 is the Mikrotik’s IP
10.1.100.71 is the printer’s IP.
But if i do:
C:\Users\aless>ping printer
Impossibile trovare l'host printer. Verificare che il nome sia corretto e riprovare.
I also do a Wireshark capture and i notice no problem: Mikrotik is answering correctly.
Any ideas?