Uts
Uts
Uts
1. nano etc/network/interfaces
2. ketik
"iface lo inet loopback
auto eth0
0. install bind9
1. setting IP (^)
2. nano /etc/bind/named.conf.local
3. zone "esa.com"{
type master;
file "/etc/bind/db.esa.com"
};
4. nano /etc/bind/db_nama
;BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA esa.com root.esa.com(
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
6040800 ) ; Negative Cache TTL
;
@ IN NS ns1.esa.com.
@ IN NS ns2.esa.com.
@ IN A 192.168.200.115
ns1 IN A 192.168.200.115
ns2 IN A 192.168.200.115
www IN CNAME esa.com.
subdomain IN A //domain
5. /etc/init.d/bind9 restart
6. nano /etc/resolv.conf
search esa.com
nameserver 192.168.200.x
7. PING DNS
1. instal squid3
2. nano etc/squid/squid.conf (search dan sesuaikan)
http_port 3128
cache_mem [1/4mem]
cache_mgr webmaster@esa.com
visible_hostname esa
cache_dir ufs /var/spool/squid 100 16 256
#http_access deny all
acl CONNECT method CONNECT
(tambahkan)
acl url dstdomain "/etc/squid/url"
acl key url_regex -i "/etc/squid/key"
http_access deny url
http_access deny key
acl lan src 192.168.200.0/24
http_access allow lan
http_access allow all
3. nano /etc/squid/url
4. nano /etc/squid/key