{"id":252,"date":"2025-10-09T13:59:40","date_gmt":"2025-10-09T13:59:40","guid":{"rendered":"https:\/\/linuxbase.io\/?p=252"},"modified":"2025-10-09T13:59:40","modified_gmt":"2025-10-09T13:59:40","slug":"bind9-dns-server-konfiguration-prufen","status":"publish","type":"post","link":"https:\/\/netguide.io\/linux\/de\/bind9-dns-server-konfiguration-prufen\/","title":{"rendered":"Bind9 (DNS-Server) Konfiguration pr\u00fcfen"},"content":{"rendered":"\n<p>Wenn du einen <strong>Bind9 DNS-Server<\/strong> betreibst, ist es wichtig, die Konfiguration regelm\u00e4\u00dfig zu pr\u00fcfen &#8211; insbesondere nach \u00c4nderungen an der Datei <code>named.conf<\/code> oder an Zonendateien. Mit den Tools <code>named-checkconf<\/code> und <code>named-checkzone<\/code> kannst du schnell Syntaxfehler erkennen, bevor du den Dienst neu startest. In diesem Artikel zeigen wir dir Schritt f\u00fcr Schritt, wie du die <strong>Bind9-Konfiguration unter Linux \u00fcberpr\u00fcfst<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Bind9 (DNS) Konfiguration pr\u00fcfen<\/h2>\n\n\n\n<p>Nach jeder \u00c4nderung an der Konfiguration von Bind9 solltest du sicherstellen, dass keine Syntaxfehler enthalten sind.<br>Das erledigst du mit dem Befehl:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>named-checkconf \/etc\/bind\/named.conf\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">named-checkconf<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/etc\/bind\/named.conf<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u27a1\ufe0f Wenn <strong>keine Ausgabe<\/strong> erscheint, ist alles in Ordnung.<br>\u27a1\ufe0f Wird ein Fehler gefunden, gibt der Befehl die entsprechende Zeile und Beschreibung des Problems aus.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Beispielausgabe bei einem Fehler:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>\/etc\/bind\/named.conf:12: unknown option 'zoness'\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">\/etc\/bind\/named.conf:12:<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">unknown<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">option<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">&#039;zoness&#039;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Bind9 in einer Chroot-Umgebung pr\u00fcfen<\/h2>\n\n\n\n<p>Falls dein DNS-Server in einer <strong>Chroot-Umgebung<\/strong> l\u00e4uft (z. B. zur zus\u00e4tzlichen Sicherheit), musst du beim Pr\u00fcfen den Pfad anpassen:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>named-checkconf -t \/var\/lib\/bind \/etc\/bind\/named.conf\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">named-checkconf<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">-t<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/var\/lib\/bind<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/etc\/bind\/named.conf<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Dieser Befehl f\u00fchrt die Pr\u00fcfung innerhalb des Chroot-Verzeichnisses aus, sodass alle relativen Pfade korrekt interpretiert werden.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Zonendateien auf Fehler pr\u00fcfen<\/h2>\n\n\n\n<p>Auch deine <strong>Zonendateien<\/strong> sollten regelm\u00e4\u00dfig gepr\u00fcft werden. Mit <code>named-checkzone<\/code> kannst du sicherstellen, dass die Eintr\u00e4ge korrekt formatiert sind.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>named-checkzone linuxbase.io \/var\/lib\/bind\/linuxbase.io.zone\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">named-checkzone<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">linuxbase.io<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/var\/lib\/bind\/linuxbase.io.zone<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Beispielausgabe:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>zone linuxbase.io\/IN: loaded serial 2025100901\nOK\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">zone<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">linuxbase.io\/IN:<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">loaded<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">serial<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">2025100901<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">OK<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Wenn &#8220;OK&#8221; erscheint, ist die Zonendatei fehlerfrei.<br>Fehlerhafte Eintr\u00e4ge werden mit Zeilennummer und genauer Beschreibung ausgegeben.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\">Konfiguration in \u00e4lteren Bind-Versionen pr\u00fcfen<\/h2>\n\n\n\n<p>Bei \u00e4lteren Linux-Distributionen (z. B. Debian 9 oder CentOS 6) kannst du die Konfiguration mit dem folgenden Befehl testen:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>service bind9 configtest\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">service<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">bind9<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">configtest<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Beispielausgabe:<\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2\"><span style=\"padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><\/span><span role=\"button\" style=\"color:#e1e4e8\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" aria-hidden=\"true\" readonly>zone linuxbase.io\/IN: loaded serial 2025100901\nzone localhost\/IN: loaded serial 42\nzone 1.168.192.in-addr.arpa\/IN: loaded serial 1997022700\nOK\n<\/textarea><\/pre><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\"><code><span class=\"line\"><span style=\"color: #B392F0\">zone<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">linuxbase.io\/IN:<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">loaded<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">serial<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">2025100901<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">zone<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">localhost\/IN:<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">loaded<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">serial<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">42<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">zone<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">1.168<\/span><span style=\"color: #9ECBFF\">.192.in-addr.arpa\/IN:<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">loaded<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">serial<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">1997022700<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">OK<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Fazit<\/h2>\n\n\n\n<p>Mit den Tools <code>named-checkconf<\/code> und <code>named-checkzone<\/code> kannst du die <strong>Bind9-Konfiguration unter Linux sicher und zuverl\u00e4ssig pr\u00fcfen<\/strong>.<br>So stellst du sicher, dass dein DNS-Server fehlerfrei startet und alle Zonendateien korrekt geladen werden.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wenn du einen Bind9 DNS-Server betreibst, ist es wichtig, die Konfiguration regelm\u00e4\u00dfig zu pr\u00fcfen &#8211; insbesondere nach \u00c4nderungen an der [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":336,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[117],"class_list":["post-252","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-bind9"],"uagb_featured_image_src":{"full":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/10\/bind9.png",1920,1080,false],"thumbnail":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/10\/bind9-150x150.png",150,150,true],"medium":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/10\/bind9-300x169.png",300,169,true],"medium_large":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/10\/bind9-768x432.png",768,432,true],"large":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/10\/bind9-1024x576.png",1024,576,true],"1536x1536":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/10\/bind9-1536x864.png",1536,864,true],"2048x2048":["https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2025\/10\/bind9.png",1920,1080,false]},"uagb_author_info":{"display_name":"tobias.pries","author_link":"https:\/\/netguide.io\/linux\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Wenn du einen Bind9 DNS-Server betreibst, ist es wichtig, die Konfiguration regelm\u00e4\u00dfig zu pr\u00fcfen &#8211; insbesondere nach \u00c4nderungen an der [&hellip;]","_links":{"self":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":0,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media\/336"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}