Community discussions

MikroTik App
 
bronco1980
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Wed Jul 22, 2009 5:02 pm

DNS does not cache in 5.24

Sat Apr 20, 2013 10:30 pm

Hey Guys..

i have upgrade to 5.24 but the dns server in ip/dns/cache does not cache any content!!

Waiting for your reply..
Thx guys
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

DNS does not cache in 5.24

Sun Apr 21, 2013 7:37 am

It was working fine for me.

Ae you sure you have it setup correctly?
 
bronco1980
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Wed Jul 22, 2009 5:02 pm

Re: DNS does not cache in 5.24

Sun Apr 21, 2013 10:04 am

Yes ..

ip/dns/ servers,, and i have put the server addresses, and in ppp/profiles i have put there also Ip of the Dns.

Let me know pls if there is something missing!!

Thx.
 
User avatar
TheWiFiGuy
Member
Member
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

Re: DNS does not cache in 5.24

Sun Apr 21, 2013 11:00 pm

Have you told it to accept remote connections?

DNS Cache works fine in 5.24 - maybe you can post your setup config ?
 
bronco1980
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Wed Jul 22, 2009 5:02 pm

Re: DNS does not cache in 5.24

Mon Apr 22, 2013 12:09 am

Thx for the reply..

here is my settings:

[admin@Swift] /ip dns> print
servers: 10.249.209.101,10.249.209.102
dynamic-servers:
allow-remote-requests: yes
max-udp-packet-size: 8192
cache-size: 8192KiB
cache-max-ttl: 1w
cache-used: 12KiB

STILL DNS CACHE IS EMPTY!
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: DNS does not cache in 5.24

Mon Apr 22, 2013 12:47 am

Are you sure that clients are using the routerboard as their DNS Server? The cache will only show entries if either the router itself successfully requests a lookup.
 
bronco1980
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Wed Jul 22, 2009 5:02 pm

Re: DNS does not cache in 5.24

Mon Apr 22, 2013 2:00 am

I'm using the Dns giving by my isp!

Can u help on how to do this.. all my clients are pppoe clients
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: DNS does not cache in 5.24

Mon Apr 22, 2013 3:56 am

I suggest that you upload output from /export compact so we can get a better idea what the config is. You can specify the DNS server in the PPPoE profile for the clients. At the moment I suspect that your clients are using the ISP DNS servers or other servers directly thus you don't have any requests hitting the RouterOS DNS server.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: DNS does not cache in 5.24

Mon Apr 22, 2013 2:17 pm

I agree with Celtic, it would be best to post /export compact

You can force all DNS traffic to be redirected to the router using NAT.
/ip firewall nat
add action=redirect chain=dstnat dst-port=53 protocol=udp to-ports=53
add action=redirect chain=dstnat dst-port=53 protocol=tcp to-ports=53
 
bronco1980
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Wed Jul 22, 2009 5:02 pm

Re: DNS does not cache in 5.24

Mon Apr 22, 2013 10:50 pm

Thx guys a lot...
I have solved it.. the problem was with local address in pppoe clients, it was blank before, once i added it with the dns address in ppp/profiles caching start to cache...

Thx again for your time :)