{"id":9687,"date":"2023-10-02T15:16:15","date_gmt":"2023-10-02T13:16:15","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=9687"},"modified":"2023-10-02T15:16:17","modified_gmt":"2023-10-02T13:16:17","slug":"dig-ip-adressen-und-hostnamen-unter-linux-am-terminal-aufloesen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/10\/02\/dig-ip-adressen-und-hostnamen-unter-linux-am-terminal-aufloesen\/","title":{"rendered":"dig &#8211; IP-Adressen und Hostnamen unter Linux am Terminal aufl\u00f6sen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Das DNS (<em>Domain Name System<\/em>) dient so gesehen als Telefonbuch f\u00fcr das Internet, dank diesem System m\u00fcssen wir im Webbrowser keine IP-Adressen angeben, sondern k\u00f6nnen Adressen wie etwa &#8222;<strong>linux-bibel-oesterreich.at<\/strong>&#8220; angeben &#8211; sieht doch ein wenig einfacher aus. Die IP-Adresse dagegen w\u00e4re etwas umst\u00e4ndlich &#8222;<strong>91.151.18.30<\/strong>&#8222;.<br><br>Hin und wieder ist es jedoch interessant an die IP-Adresse einer Webseite oder was auch immer zu kommen. Etwa, weil man sehen will, in welchem Land der Server steht. Dies funktioniert ganz einfach unter Linux auf dem <a href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=3\" target=\"_blank\" rel=\"noreferrer noopener\">Terminal<\/a> mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dig<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wollen wir uns einfach einmal die IP-Adresse, der Linux Bibel anzeigen lassen, wir geben ganz einfach die Adresse als Option an:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dig linux-bibel.at<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig.jpg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1024x576.jpg\" alt=\"\" class=\"wp-image-9689\" title=\"dig.jpg (473.13 KiB) 2085 mal betrachtet\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Umgekehrt, Sie m\u00f6chten also den Rechnernamen einer IP-Adresse erfahren &#8211; in diesem Fall nutzen Sie zus\u00e4tzlich die Option &#8222;<strong>-x IP-Adresse<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dig -x 91.151.18.30<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1.jpg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1-1024x576.jpg\" alt=\"\" class=\"wp-image-9690\" title=\"dig-1.jpg (472.1 KiB) 2085 mal betrachtet\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/dig-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Im Fall der Linux Bibel \u00d6sterreich funktioniert dies allerdings nicht so richtig &#8211; es handelt sich hierbei um einen geteilten Server (<em>Shared Space<\/em>).<br><br>Installieren Sie unter auf Debian basierenden Linux-Distributionen \u00fcber die <a href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=10\" target=\"_blank\" rel=\"noreferrer noopener\">Paket-Verwaltung<\/a> das Paket &#8222;<strong>whois<\/strong>&#8222;, erhalten Sie noch mehr Informationen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>whois 91.151.18.30<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois.jpg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois-1024x576.jpg\" alt=\"\" class=\"wp-image-9691\" title=\"whois.jpg (453.45 KiB) 2085 mal betrachtet\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/10\/whois.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">So finden Sie etwa das Land in dem der Server steht, die Organisation, die diesen bereitstellt und so einiges mehr.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Erg\u00e4nzung aus dem Forum<\/strong><br>Um diese Befehle unter Manjaro (Arch Linux) ausf\u00fchren zu k\u00f6nnen, muss man folgende Installationen vornehmen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman - S whois bind dog<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">dog ist Debian-dig, bind enth\u00e4lt ein leicht unterschiedliches Debian-dig, und whois ist whois.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"9687\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">2    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"9687\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Das DNS (Domain Name System) dient so gesehen als Telefonbuch f\u00fcr das Internet, dank diesem System m\u00fcssen wir im Webbrowser keine IP-Adressen angeben, sondern k\u00f6nnen Adressen wie etwa &#8222;linux-bibel-oesterreich.at&#8220; angeben &#8211; sieht doch ein wenig einfacher aus. Die IP-Adresse dagegen w\u00e4re etwas umst\u00e4ndlich &#8222;91.151.18.30&#8222;. Hin und wieder ist es jedoch interessant an die IP-Adresse einer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9692,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,4],"tags":[],"class_list":["post-9687","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","category-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/9687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=9687"}],"version-history":[{"count":2,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/9687\/revisions"}],"predecessor-version":[{"id":9693,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/9687\/revisions\/9693"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/9692"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=9687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=9687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=9687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}