Here is my simple network scenario, in which mikrotik is everything(firewall,dhcp,dns etc).
I am able to ping/access the hosts on LAN by their ip but i can’t be able to access them or ping them by using hostname.
can somebody tell me how i can accomplish this task please?
First you need to make sure the machines on your LAN use your router as their primary DNS.
Then, for anything with a static address:
/ip dns static add address=192.168.1.10 name=server1
For machines that get their address via DHCP you would need to write a script that scans through your DHCP leases and maps client-id to assigned address. Someone posted an example of this not to long ago so a search should turn it up pretty quickly.
I am able to solve this problem and here is what i did.
*I simply install the samba on ubuntu server using (sudo apt-get install samba smbfs), by doing this, i am able to ping ubuntu server from my windows host.
To ping my windows host from ubuntu server, i simply install winbind by using (sudo apt-get install winbind) and after that i am able to ping all of my windows clients from ubuntu server.
I hope this will help the other, who faced the same/similar problem.
I believe if you use a single name such as “srv” it will look for the IP via NETBIOS and will fail. If your server has a fully qualified domain name, such as srv.local and then were to add srv.local in the Mikrotik DNS server, I think you will have better luck as it will then use DNS correctly?
Like, I want that my mikrotik act as dhcp server and Win2K8 R2 act as DNS with the role of DC and my mikrotik automatically update DNS record on it (a.ka. A record).