If your computer uses the router LAN IP for DNS then the second one should be all you need. If your computer needs to directly reach an external IP address for DNS then add that DNS to the single IP rule as shown in the full script.

Save your script to the firewall and reboot the router to take effect.