Community discussions

MikroTik App
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

DNS for private network

Mon May 19, 2014 7:16 pm

I have 10 systems in our network, I have assigned static IP(private IP) for all systems manually. There is a web server running in our network with private IP say 192.168.2.15. What I want is instead of type http://192.168.2.15 in browser and access webserver, everyone(only LAN users) should use a name say http://mydomain.com or http://mydomain.local in browser. How do I do this with mikrotik router 750GL?

NOTE: the domain shouldn't be accessible from outside LAN.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12571
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DNS for private network

Mon May 19, 2014 7:36 pm

all the device must have as DNS the ip of RB750,
enable DNS and configure it correctly on RB750,
create one static entry on that DNS.
Done.
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Re: DNS for private network

Tue Jun 03, 2014 2:41 pm

How do I enable dns in mikrotik router? this is the dns settings which is already exists.

[niren@MikroTik] > ip dns print

servers: 202.83.21.12,202.83.20.101
dynamic-servers:
allow-remote-requests: yes
max-udp-packet-size: 4096
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 21KiB

and then no idea about create a static entry.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: DNS for private network

Tue Jun 03, 2014 4:49 pm

 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Re: DNS for private network

Thu Jun 05, 2014 6:22 pm

This is what I tried as per the link shown above.
[niren@MikroTik] /ip dns static> print                                     
Flags: D - dynamic, X - disabled, R - regexp 
 #     NAME         ADDRESS                                        TTL         
 0     mysite.com 192.168.2.14                                   1d    
and dns servers is
[niren@MikroTik] /ip dns> print
                servers: 202.83.21.12,202.83.20.101
        dynamic-servers: 
  allow-remote-requests: yes
    max-udp-packet-size: 4096
             cache-size: 2048KiB
          cache-max-ttl: 1w
             cache-used: 81KiB
In my local system:
niren@hammett:~$ nmcli dev list iface eth0 | grep IP4
IP4.ADDRESS[1]:                         ip = 192.168.2.4/24, gw = 192.168.2.1
IP4.DNS[1]:                             192.168.2.1
IP4.DNS[2]:                             202.83.21.12
192.168.2.1 is router address for LAN users.

Tests I did:
niren@hammett:~$ ping mysite.com
ping: unknown host mysite.com

niren@hammett:~$ traceroute mysite.com
mysite.com: Name or service not known
Cannot handle "host" cmdline arg `mysite.com` on position 1 (argc 1)
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: DNS for private network

Thu Jun 05, 2014 6:25 pm

Set only one dns server address in your computer: the router.

Who is online

Users browsing this forum: holvoetn, panisk0 and 87 guests