|
|
ISC BIND Nameserver in Windows XP installieren |
Aus Wiki.csoft.at
Software downloaden* https://www.isc.org/downloadables/11 BIND 9.3.3 scheint in Windows XP nicht zu funktionieren, jedoch BIND 9.4.0rc1 InstallationBINDInstall.exe Der Installer legt einen niedrig privilegierten Benutzer an: named Target Directory ist standardmäßig C:\WINDOWS\System32\dns Anschließend zunächst eine leere Datei named.conf im Verzeichnis C:\WINDOWS\System32\dns\etc anlegen. Windows-Umgebungsvariablen ändernStart | Einstellungen | Systemsteuerung | System | Erweitert | Umgebungsvariablen An bestehenden Pfad anhängen PATH = ;c:\windows\system32\dns\bin Nun sollten die Befehle * dig * host funtionieren. Nameserver als Dienst startenStart | Einstellungen | Systemsteuerung | Verwaltung | Dienste | ISC Bind Wenn diese Fehlermeldung kommt: Der Dienst "ISC BIND" auf "Lokaler Computer" konnte nicht gestartet werden. Fehler 1069: Der Dienst konnte wegen einer fehlerhaften Anmeldung nich gestartet werden In den Eigenschaften im Reiter "Anmelden" die Benutzerrechte von named auf Lokales Systemkonto ändern PrüfenIn der Cygwin-Shell eingeben netstat -an | grep :53 Ergibt etwas ähnliches wie das hier TCP 127.0.0.1:53 0.0.0.0:0 ABHÖREN TCP 192.168.1.4:53 0.0.0.0:0 ABHÖREN UDP 127.0.0.1:53 *:* UDP 192.168.1.4:53 *:* Nameserver starten/stoppennet stop "ISC BIND" net start "ISC BIND" ISC BIND konfigurierenDateien anlegen: C:\WINDOWS\System32\dns\etc\named.confzone "." {
type hint;
file "named.cache";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
include "c:\windows\system32\dns\named.zones";
options
{
directory "c:\windows\system32\dns\etc";
};
C:\WINDOWS\System32\dns\etc\named.cacheftp://ftp.rs.internic.net/domain/named.cache C:\WINDOWS\System32\dns\etc\localhost.zone$TTL 86400 $ORIGIN localhost. @ 1D IN SOA @ root ( 44 ; serial 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum 1D IN NS @ 1D IN A 127.0.0.1 localhost.localdomain. IN A 127.0.0.1 C:\WINDOWS\System32\dns\named.local@ IN SOA localhost. root.localhost. ( 19 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1 IN PTR localhost. Zonen anlegenC:\WINDOWS\System32\dns\named.zoneszone "csoft.ga" IN {
type master;
file "csoft.ga.zone";
};
C:\WINDOWS\System32\dns\etc\csoft.ga.zonecsoft.ga. IN SOA localhost. dns.csoft.at. ( 2007012101 ; Serial 30800 ; Refresh 7200 ; Retry 604800 ; Expire 300 ) ; Minimum csoft.ga. IN NS localhost. csoft.ga. IN MX 10 mail.csoft.ga. www.csoft.ga. IN A 192.168.1.4 csoft.ga. IN A 192.168.1.4 mail.csoft.ga. IN A 192.168.1.4 ftp.csoft.ga. IN A 192.168.1.4 Nameserver angebenCygwinvi /etc/resolv.conf nameserver 127.0.0.1 Windows XPStart | Einstellungen | Netzwerkverbindungen | LAN-Adapter | Eigenschaften | Internetprotokoll (TCP/IP) | Eigenschaften | Bevorzugter DNS-Server 127.0.0.1 Erweitert | DNS Nameserver zum Debuggen startennamed -g -f -d 5 Zone auslesendig @localhost csoft.ga axfr ergibt ; <<>> DiG 9.4.0rc1 <<>> @localhost csoft.ga axfr ; (1 server found) ;; global options: printcmd csoft.ga. 300 IN SOA localhost. dns.csoft.at. 2007012101 30800 7200 604800 300 csoft.ga. 300 IN A 192.168.1.4 csoft.ga. 300 IN NS localhost. csoft.ga. 300 IN MX 10 mail.csoft.ga. ftp.csoft.ga. 300 IN A 192.168.1.4 mail.csoft.ga. 300 IN A 192.168.1.4 www.csoft.ga. 300 IN A 192.168.1.4 csoft.ga. 300 IN SOA localhost. dns.csoft.at. 2007012101 30800 7200 604800 300 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sun Jan 21 12:47:02 2007 ;; XFR size: 8 records (messages 1, bytes 226) Mit host prüfen host csoft.ga ergibt csoft.ga has address 192.168.1.4 csoft.ga mail is handled by 10 mail.csoft.ga. Siehe auchWeblinks |







