🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 2 Min Lesezeit
0

Setting Up a DNS Server on My Local System (BIND9)

↗ Quelle (dev.to)
🗣️ Stimme:




Step 1: Update the System



Get to WSL (Ubuntu for Windows).

Update the package list:




CODE
sudo apt update









Step 2: Install BIND9



Install the DNS server software:




CODE
sudo apt install bind9 bind9utils bind9-doc -y






Start and enable BIND9:




CODE
sudo systemctl enable bind9
sudo systemctl start bind9






Verify the installation:




CODE
sudo systemctl status bind9









Step 3: Configure BIND9 Options



Open the BIND9 options file:




CODE
sudo nano /etc/bind/named.conf.options






Modify or add the following configuration to enable forwarding to public DNS servers:




CODE
options {
directory "/var/cache/bind";

// Enable recursion to allow the server to resolve queries
recursion yes;

// Allow queries from any IP
allow-query { any; };

// Use Google's public DNS servers as forwarders
forwarders {
8.8.8.8;
8.8.4.4;
};

// Disable authoritative answers for NXDOMAIN responses
auth-nxdomain no;

// Listen on all IPv6 interfaces
listen-on-v6 { any; };

// Optional: Enable DNSSEC validation
dnssec-validation auto;
};






Save the file and restart BIND9:




CODE
sudo systemctl restart bind9









Step 4: Configure DNS Zones



Open the local configuration file for zones:




CODE
sudo nano /etc/bind/named.conf.local






Add the forward and reverse lookup zones for your domain (use your local IP and domain name of choice):




CODE
zone "victorokonkwo.com" {
type master;
file "/etc/bind/db.victorokonkwo.com";
};

zone "74.31.172.in-addr.arpa" {
type master;
file "/etc/bind/db.172";
};






Save the file.






Step 5: Create Zone Files



Create the forward zone file (use your local IP and domain name of choice):




CODE
sudo nano /etc/bind/db.victorokonkwo.com






Add the following content:




CODE
;
; BIND data file for victorokonkwo.com
;
$TTL 604800
@ IN SOA ns1.victorokonkwo.com. admin.victorokonkwo.com. (
2023111801 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

IN NS ns1.victorokonkwo.com.
ns1 IN A 172.31.74.133
@ IN A 172.31.74.133
www IN A 172.31.74.133






Create the reverse zone file:




CODE
sudo nano /etc/bind/db.172






Add the following content:




CODE
;
; Reverse DNS file for 172.31.74.0/24
;
$TTL 604800
@ IN SOA ns1.victorokonkwo.com. admin.victorokonkwo.com. (
2023111801 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

IN NS ns1.victorokonkwo.com.
133 IN PTR victorokonkwo.com.









Step 6: Test the Configuration



Check the syntax of the configuration files:




CODE
sudo named-checkconf
sudo named-checkzone victorokonkwo.com /etc/bind/db.victorokonkwo.com
sudo named-checkzone 74.31.172.in-addr.arpa /etc/bind/db.172






Restart the BIND9 service:




CODE
sudo systemctl restart bind9









Step 7: Test DNS Resolution



Use the dig tool to test the setup:




CODE
dig @localhost victorokonkwo.com
dig @localhost www.victorokonkwo.com
dig -x 172.31.74.133






Verify that the correct responses are returned.






Step 8: Configure Firewall



Allow DNS traffic through the firewall:




CODE
sudo ufw allow 53
sudo ufw reload


Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Setting Up a DNS Server on My Local System (BIND9)

Thematisch verwandte Begriffe: Setting, Server, Local, System · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...