Professional Documents
Culture Documents
Kasus :
Domain : net.id
Hostname(FQDN) : oscar.net.id
//
// 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; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 192.168.1.0/24;};
recursion yes;
allow-transfer { localhost; 192.168.1.0/24;};
allow-recursion { localhost; 192.168.1.0/24;};
};
view "internal" {
match-clients {
localhost;
192.168.1.0/24;
};
zone "." IN {
type hint;
file "named.ca";
};
zone "net.id" IN {
type master;
file "net.id.db";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "net.id.rev.db";
allow-update { none; };
};
zone "localhost.localdomain" IN {
type master;
file "named.localhost";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};
zone
"1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6
.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update { none; };
};
};
#include "/etc/named.rfc1912.zones";
include "/etc/rndc.key";
3. net.id.rev.db
$TTL 86400
@ IN SOA oscar.net.id. root.oscar.net.id. (
2010150500 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS oscar.net.id.
1 IN PTR oscar.net.id
4. Instalasi Potsfix
oscar#yum -y install postfix
[root@mail ~]#
vi /etc/postfix/main.cf
myhostname = oscar.net.id // line 70: specify hostname
mydomain = net.id // line 77: specify domain name
myorigin = $mydomain // line 93: tanda pagar dibuka
inet_interfaces = all // line 110: change
2 /usr/sbin/sendmail.postfix
Enter to keep the current selection[+], or type selection number: 2 // rubah yg dua
karena pake postfix
13. Install Dovecot : Dovecot merupakan sebuah aplikasi yang dijalankan untuk mengikuti
protocol imap imaps pop3 pop3s. Dengan mempergunakan protokol tersebut, kita
dapat mengakses email yang ada di server. Sehingga kita dapat melakukan pengaksesan
email dimanapun juga dan kapan saja.
[root@oscar ~]# yum -y install dovecot
14. Konfigurasi Dovecot
[root@oscar ~]# vi /etc/dovecot.conf
protocols = imap imaps pop3 pop3s // line 20: buka pagar
mail_location = maildir:~/Maildir // line 209: buka pagar dan tambahkan sesaui yg
tadi (maildir
17.