This PR ensures DNS cache TTL values are properly converted to numbers before being sent to the backend. fix #2294