dns: move rtt computation in DNSResponse to ease testing