Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

hi,

Wie kann ich einen DNS Server Abfragen ?

Ich habe eine Anwendung in einem Netz das über einen Proxyserver ins Netz geht (darüber hinaus wird evtl. ein anderer DNS verwendet)

Welche Protokolle werden da eingesetzt oder gibt es Java-Klassen dazu ?

danke

Wie kann ich einen DNS Server Abfragen ?

auf Konsole und per Hand "nslookup", "host", "dig"

Ich habe eine Anwendung in einem Netz das über einen Proxyserver ins Netz geht (darüber hinaus wird evtl. ein anderer DNS verwendet)

Diese Aussage hilft wenig, da die Protokolle Deiner Anwendung nicht spezifiziert sind. Welcher DNS verwendet wird, ist Sache Deiner Einstellungen / Deines Admin / Eurer Netzkonfiguration.

Welche Protokolle werden da eingesetzt oder gibt es Java-Klassen dazu ?

DNS: Domain Name System â€â€œ Wikipedia

UPD & TCP, IP und somit auch ARP, wenn Du auf einen DNS außerhalb Deines Netzes zugreifst entsprechend noch diverse Routingprotokolle (z.B. RIP).

Bitte spezifiziere Deine Frage etwas genauer bzw. das Ziel das Du erreichen willst. Was soll die Anwendung machen z.B. den aktuellen DNS abfragen => dann lies einfach die Einstellung, die unter Netzwerkeinstellung für das Interface hinterlegt sind. Schau Dir einfach folgendes dazu an: java.net.*

HTH Phil

ich will die Domain-Auflösung ja manuell machen und in einem Anwendungsfall "nur" die Auflösung. Und im wesentlichen Plattformunabhängig (Win, *nix).

Ergo Domain rein, IP Adresse raus

gibts keine Möglichkeit das auf Anwendungsebene zu machen ?

Verstehe ich das richtig, dass Deine Anwendung eine IP bekommt und dann einen DNS Lookup ausführen soll?

der Code wäre dann passend:


InetAddress addr = InetAddress.getByName("208.201.239.36");

System.out.println(addr.getHostName());

liefert dir "www.oreillynet.com"

HTH Phil

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.