Since the Sonos does not allow you to configure DNS directly on the device you need to set up your router instead. Please see the setup guides.
Important
First step of troubleshooting should always be to restart device(s) and router. Then check your setup status in your SmartDNS dashboard.