Community discussions

MikroTik App
 
xbar7networks
just joined
Topic Author
Posts: 9
Joined: Sun Feb 18, 2018 4:47 pm

HAP AC Lite DHCP-SERVER Network DNS Server Config Wrong but Working?

Wed Apr 14, 2021 6:50 pm

This seems like a strange situation. My WISP co-owner uses the default / out-of-the box RouterOS config for client installs and has done so on approximately 200 devices. This seems to work the vast majority of the time but in some cases we may have unpredictable behavior. Clients / customers reporting intermittent connectivity loss and in a few cases, evidence of a DNS resolution problem. Investigation into the potential DNS issues yielded the following.

1 - Most client devices have valid DNS Server settings when connected to the Mikrotik default configured device.
2 - The default RouterOS /ip dhcp-server configuration has no dns server.

Here is a new / out-of-the box HAP AC Lite router w/ the default config:

[admin@MikroTik] /ip dhcp-server network> export
# jan/02/1970 00:13:03 by RouterOS 6.45.9
# software id = 9PDW-KINW
#
# model = RB952Ui-5ac2nD
# serial number = CC3F0CC91E81
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1

Notice, no dns server. My background in networking tells me that should not work, so I have always manually added the dns server setting as either the same as the default gateway (in this case 192.168.88.1) or something upstream like 8.8.8.8 and similar depending on requirements for that customer. But like I said, our WISP co-owner has done 200 or so of these installs w/ out adding the dns server manually and they seem to work mostly, most of the time etc.

So the question arises, why does this default configuration work at all? I've seen discussions on this in Reddit but no good answers? Is there something in RouterOS that issues a DNS server to dhcp clients even when the /ip dhcp-server network dns server option is not set ?

Second, is it possible this is some not-intended-to-be-used functionality which isn't reliable? That would explain why some customers seem to have random dns problems.

Any insight into this behavior would be much appreciated.

Thanks,

-scott
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: HAP AC Lite DHCP-SERVER Network DNS Server Config Wrong but Working?

Wed Apr 14, 2021 8:26 pm

dns-none=no (default) means without setting dns-server= the dhcp-server will pass the dynamic dns.

https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Server
 
xbar7networks
just joined
Topic Author
Posts: 9
Joined: Sun Feb 18, 2018 4:47 pm

Re: HAP AC Lite DHCP-SERVER Network DNS Server Config Wrong but Working?

Wed Apr 14, 2021 8:43 pm

yes I understand that. In our case, most of the Mikrotik CPE does not have a dhcp client configured so there are no dynamic servers. Instead the Mikrotik is static configured like so:

[xb7@171Wichita-rtr] /ip dhcp-client<SAFE> print
Flags: X - disabled, I - invalid, D - dynamic
# INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS
[rtr] /ip dhcp-client<SAFE>

rtr] /ip dns<SAFE> print
servers: 8.8.8.8,4.2.2.4
dynamic-servers:
allow-remote-requests: yes
max-udp-packet-size: 4096
query-server-timeout: 2s
query-total-timeout: 10s
max-concurrent-queries: 100
max-concurrent-tcp-sessions: 20
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 103KiB

So the question remains, why does this work most of the time.

Who is online

Users browsing this forum: 0xAA55, bpwl, cmmike, hatred and 42 guests