Have internet, but switch will not update.

I’m running a CRS354-48G-4S+2Q+ as a switch, and an OPNSense DEC850 as a firewall. I’m able to connect to the internet, but RouterOS 6.48.3 throws ERROR: could not resolve dns name. The router is configured to automatically give the switch an ip address through DHCP. I even have the Gateway set to the interface.

Does anyone know how I might resolve the DNS name on the switch?

Managed to get it working by manually adding a DNS server to the switch. Why couldn’t the switch just get the DNS server from the firewall?

Does the Mikrotik DHCP client have use-peer-dns=yes? Is the DHCP server configured to send DNS server(s) (option 6) if requested by a client?

Check the Mikrotik’s DHCP client for a setting about Use DNS..