Page 1 of 1

Warum erkennt Python meine in macOS konfigurierten DNS nicht?

Posted: 20 Feb 2025, 12:00
by Guest
Ich habe einen internen DNS. Es ist in meinen Routereinstellungen konfiguriert, sodass alle Geräte automatisch verwenden. Ich habe Anfragen Modul und httpx ausprobiert. < /P>

Code: Select all

import requests
requests.get("https://test.mynetwork.de")
< /code>
führt zu: < /p>
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='test.mynetwork.de', port=443): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 65] No route to host'))
Dies funktioniert sowohl auf Windows- als auch bei Linux -Maschinen in meinem Netzwerk.
curl https://test.mynetwork.de
< /code>
Es funktioniert auch im Browser und mit anderen Befehlen wie nslookup oder dig. Es ist in /etc/resolv.conf
Nichts funktioniert. Und das Seltsame ist, dass es früher ohne Konfiguration auf meinem alten Mac funktioniert hat.
Hat jemand eine Idee, warum?