0 valutazioniIl 0% ha trovato utile questo documento (0 voti)
38 visualizzazioni3 pagine
This document provides instructions for configuring a DNS server on a system using the BIND software. It involves checking for installed BIND packages, editing the named.conf configuration file, creating DNS zone files for the domain and reverse lookups, linking the zone files, configuring the /etc/hosts and /etc/host.conf files, and starting the named service after disabling the firewall. Detailed commands and configurations are provided to set up a basic internal DNS server for the domain indraharry.com.
This document provides instructions for configuring a DNS server on a system using the BIND software. It involves checking for installed BIND packages, editing the named.conf configuration file, creating DNS zone files for the domain and reverse lookups, linking the zone files, configuring the /etc/hosts and /etc/host.conf files, and starting the named service after disabling the firewall. Detailed commands and configurations are provided to set up a basic internal DNS server for the domain indraharry.com.
This document provides instructions for configuring a DNS server on a system using the BIND software. It involves checking for installed BIND packages, editing the named.conf configuration file, creating DNS zone files for the domain and reverse lookups, linking the zone files, configuring the /etc/hosts and /etc/host.conf files, and starting the named service after disabling the firewall. Detailed commands and configurations are provided to set up a basic internal DNS server for the domain indraharry.com.
ypbind-1.19-9.fc7 bind-9.4.0-6.fc7 bind-libs-9.4.0-6.fc7 bind-chroot-9.4.0-6.fc7 rpcbind-0.1.4-6.fc7 bind-utils-9.4.0-6.fc7 Karena kita install bind-chroot maka file configurasi named.conf terletak di va r/named/chroot/etc/named.conf / maka kita perlu membuat link # ln -sf /var/named/chroot/etc/named.conf /etc/ Kemudian Edit named.conf # vi /var/named/chroot/etc/named.conf // // named.caching-nameserver.conf // // Provided by Red Hat caching-nameserver package to configure the // ISC BIND named(8) DNS server as a caching only nameserver // (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // // DO NOT EDIT THIS FILE - use system-config-bind or an editor // to create named.conf - edits to this file will be lost on // caching-nameserver package upgrade. // options { # listen-on port 53 { 127.0.0.1; }; # listen-on-v6 port 53 { ::1; }; listen-on port 53 {192.168.70.1;}; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; # memstatistics-file "/var/named/data/named_mem_stats.txt"; # allow-query { localhost; }; recursion yes; }; #logging { # channel default_debug { # file "data/named.run"; # severity dynamic; # }; #}; #zone "." IN { # type hint; # file "named.ca"; #}; #include "/etc/named.rfc1912.zones"; zone "indraharry.com" IN { type master; file "indraharry.com.db"; }; zone "70.168.192.in-addr.arpa" IN { type master; file "indraharry.com.rev.db"; }; #cukup sampe sini aja gan ########################################################## Buat file zona # vi /var/named/chroot/var/named/indraharry.com.db $TTL 86400 @ IN SOA www.indraharry.com root.www.indraharry.com. ( 1196006769 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 38400 ) ; Minimum NS @ NS 192.168.70.1 AAAA ::1 IN NS www.indraharry.com www.indraharry.com. IN A 192.168.70.1 #cukup sampe sini gan.. #ip yang ane gunakan 192.168.70.1 Buat juga linknya # ln -sf /var/named/chroot/var/named/indraharry.com.db /var/named/ ###################################################################### Buat juga file # vi /var/named/chroot/var/named/indraharry.com.rev.db
$TTL 86400 @ IN SOA www.indraharry.com root.www.indraharry.com. ( 1196006770 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 38400 ) ; Minimum NS @ NS 192.168.70.1 AAAA ::1 IN NS www.indraharry.com. 1 IN PTR www.indraharry.com. Buat linknya # ln -sf /var/named/chroot/var/named/infopratama.com.rev.db /var/named/ ################################################################## Konfigurasi file /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. #127.0.0.1 localhost.localdomain localhost localhost #::1 localhost6.localdomain6 localhost6 # # 192.168.70.1 www.indraharry.com www Konfigurasi file /etc/host.conf order hosts,bind multi on Konfigurasi /etc/resolv.conf search indraharry.com nameserver 192.168.70.1 langkah terakhir hidupkan sevice named nya! /etc/init.d/named start atau service named start Jangan lupa matikan firewallnya pake command service iptables stop