Community discussions

MikroTik App
 
PeEhl
just joined
Topic Author
Posts: 2
Joined: Tue Jan 23, 2024 6:27 pm

DHCP and DNS setup

Tue Jan 23, 2024 6:50 pm

Hi,
I am not sure what I am doing wrong. Can you please help me with setup?

I set up DNS server
Servers: 192.168.88.1
Dynamic servers: (2 servers set by my ISP)
Allow Remote Requests = yes
and set some static DNS records

Detail:
/ip dns print 
                      servers: 192.168.88.1
              dynamic-servers: 93.153.117.1,93.153.117.33
               use-doh-server: 
              verify-doh-cert: no
   doh-max-server-connections: 5
   doh-max-concurrent-queries: 50
                  doh-timeout: 5s
        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: 1d
      address-list-extra-time: 0s
                   cache-used: 38KiB

DHCP-server network:
Address: 192.168.88.0/24
Gateway: 192.168.88.1

When I leave configuration as is, everything is ok, but when I add DNS Server 192.168.88.1 to DHCP-server I got DNS resolve error.

Can you please tell me, which part is misconfigured?

Regards
Petr
 
DeadStik
just joined
Posts: 20
Joined: Thu Jan 04, 2024 4:35 pm

Re: DHCP and DNS setup

Tue Jan 23, 2024 11:59 pm

Don't put the router itself as DNS Server in /IP DNS, these should only be other Public/Private Servers like 8.8.8.8 or 1.1.1.1 or just use the provided Dynamic Servers. You should then have no issues when you set 192.168.88.1 as DNS in /DHCP-Server Network.
 
PeEhl
just joined
Topic Author
Posts: 2
Joined: Tue Jan 23, 2024 6:27 pm

Re: DHCP and DNS setup

Wed Jan 24, 2024 8:34 am

Thank you, I tested your approach, but removing 192.168.88.1 from servers did not take effect (issue is the same). After adding 192.168.88.1 as DNS Server to DHCP network, DNS cannot resolve requests to non-static records.

Petr
 
User avatar
JazzMaster
Member Candidate
Member Candidate
Posts: 120
Joined: Wed Jan 16, 2019 7:18 pm
Location: Evansville, Indiana , USA

Re: DHCP and DNS setup

Thu Jan 25, 2024 11:24 pm

Please post your full configuration. It helps to resolve your issues.