Hi community!
I want to use the AdGuard DNS server as my primary DNS server to filter Ads. Additionally, I want to define some static hosts on my local LAN, so I do not need to remember IPs and can swap out IPs without altering configured network shares and stuff. My setup is as follows:
$> /ip/dns print
servers: 10.10.10.50
dynamic-servers: 88.134.230.33,88.134.230.97
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: 1w
address-list-extra-time: 0s
cache-used: 46KiB
10.10.10.50 is the AdGuard DNS server, the dynamic DNS servers comes from my ISP.
I also defined some static DNS entries:
$> /ip/dns/static print
Columns: NAME, ADDRESS, TTL
# NAME ADDRESS TTL
;;; defconf
0 router.lan 192.168.10.1 1d
1 core-router.lan 10.10.10.1 1d
2 commander 10.10.10.50 1d
When I now ping “commander”, I got “Name or service not known”. When I set a static route in AdGuard for the “commander” host, I got a response. This all makes sense, but I want to define the static hosts and DNS entries in my Mikrotik Router. Is there a way I can achieve this? Like using my MT-router as the default DNS server, but all DNS requests which are not listed in the static hosts got redirected to AdGuard.