Auto Flush Mikrotik DNS

A MikroTik router with DNS feature enabled can be set as a DNS server for any DNS-compliant client. Moreover, MikroTik router can be specified as a primary DNS server under its dhcp-server settings. When the remote requests are enabled, the MikroTik router responds to TCP and UDP DNS requests on port 53.



/ip dns
set allow-remote-requests=yes cache-size=10240KiB servers=8.8.8.8,8.8.4.4



/system scheduler
add interval=1d name="DNS FLUSH" on-event=dnsflush policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive start-date=apr/25/2017 start-time=04:00:00



/system script
add name=dnsflush policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source="/ip dns cache flush"

No comments:

Post a Comment

Mikrotik Malicious Spam IP Blacklist – Firewall Auto Update Script

We have published a malicious ip blacklist for free! Combined dshield and spamhaus malicious blacklists formatted for Mikrotik RouterOS .r...