Thanks for this! This worked!
For reference, here’s what I added to /etc/config/network to get it working.
/etc/config/network
option dns '8.8.8.8' option gateway '192.168.1.254'