dnsmasq seems to be an easy way to configure NextDNS on OpenWRT.

  • Put the content from the NextDNS website at the end of /etc/dnsmasq.conf.
  • Restart: service dnsmasq restart.