The standard Arduino Ethernet API has setDnsServerIP. Also consider adding DNS setter and getter like the WiFi API to enable two DNS servers. https://github.com/JAndrassy/Arduino-Networking-API/blob/main/ArduinoNetAPIDev.md#static-ip