Community discussions

MikroTik App
 
Miguelin
just joined
Topic Author
Posts: 20
Joined: Thu Aug 27, 2020 10:08 am

RouterOS DNS service for local domain

Mon Feb 13, 2023 9:12 pm

Hi guys,

I have been using the DNS service included in Router os since 8 years. Principaly, I use this service for local doman ".lan" devices.

Once I updated to RouterOS 7.7 I notice that all containers hosted in an external host (not in RouterOS) can not resolve any local domain. It seems they arrive to query but the answer can not come back to the host. This is happening only with docker containers configured with the network option to "host" while containers configured in "bridge" mode can access without problem. The resolv.conf file of the docker container inherits the nameserver from the host which is the Mikrotik IP (192.168.1.1) so all seems to be OK configured.

Do you know what could be the problem?

Regards
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: RouterOS DNS service for local domain

Tue Feb 14, 2023 2:05 pm

So it works for some but not all? Then it means that RouterOS is doing something and it would need a closer look (e.g. catch and examine some packets) to see what's wrong.
 
Miguelin
just joined
Topic Author
Posts: 20
Joined: Thu Aug 27, 2020 10:08 am

Re: RouterOS DNS service for local domain

Tue Feb 14, 2023 11:54 pm

After some tests, I can confirm it is not working in any container.

Something changed in 7.7...
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: RouterOS DNS service for local domain

Wed Feb 15, 2023 12:23 am

It could be the problem with 7.7 erroneously returning NXDOMAIN for AAAA records (or others, but these are most likely to get queried by clients) if you define only A. That was fixed in 7.8 (currently only RC, but otherwise probably not worse than 7.7).
 
Miguelin
just joined
Topic Author
Posts: 20
Joined: Thu Aug 27, 2020 10:08 am

Re: RouterOS DNS service for local domain

Wed Feb 15, 2023 1:53 am

It could be the problem with 7.7 erroneously returning NXDOMAIN for AAAA records (or others, but these are most likely to get queried by clients) if you define only A. That was fixed in 7.8 (currently only RC, but otherwise probably not worse than 7.7).
Completely, just tested and it is working again. I think "NOERROR" answer included in 7.8rc is the key.

Who is online

Users browsing this forum: No registered users and 68 guests