INSTALASI DNS SRVER (BERIKAN PILIHAN)

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
kipotlea
Posts: 30
Joined: 02 Nov 2010, 20:25
Location: Bandung
Contact:

INSTALASI DNS SRVER (BERIKAN PILIHAN)

Postby kipotlea » 04 Nov 2010, 18:49

agan2, saya mau instalasi DNS server di ubuntu.
saya dah gogling di internet> saya dapat banyak referensi. tapi setiap referensi berbeda. jadi saya bingun mau coba yang mana.
jadi, sya minta bantuan agan2 utk memilih link di bawah ini yang cocok utk belajar instalasi DNS server..
berikut linknya.

1. http://arieccnewbie.blogspot.com/2010/0 ... erver.html

2. http://maniakbus.blogspot.com/2010/05/k ... u-910.html

3. http://ngadimin.com/2009/07/02/instalas ... kan-bind9/

4. http://klikbelajar.com/tentang-komputer ... tu-server/
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: INSTALASI DNS SRVER (BERIKAN PILIHAN)

Postby ninja » 04 Nov 2010, 23:21

kalo ane pake DNS UnBound

tutorialnya dari sini Rh354

isiya ane angkut, kemari.

Unbound

Code: Select all

okey langsung saja qta mulai tahap instalasinya di ubuntu..cukup simpel koq :o

apt-get install unbound

klo udah silahkan lakukan konfigurasi file dibawah ini :

    cd /etc/unbound

    wget ftp://FTP.INTERNIC.NET/domain/named.cache

    unbound-control-setup

    chown unbound:root unbound_*

    chmod 440 unbound_*

eksekusi perintah diatas dalam mode super user (dah tau khan perintahnya :D )

sesuaikan config /etc/unbound/unbound.conf, dan servis dns lainnya (bind/dnsmasq dll) harus di stop agar tidak bentrok)

sekarang qta konfigurasi isi unboundnya�silahkan disesuaikan bagi yang mencobanya :D

sudo gedit /etc/unbound/unbound.conf

Hide �

server:
verbosity: 1
statistics-interval: 120
num-threads: 1
interface: 0.0.0.0

outgoing-range: 512
num-queries-per-thread: 1024

msg-cache-size: 16m
rrset-cache-size: 32m

msg-cache-slabs: 4
rrset-cache-slabs: 4

cache-max-ttl: 86400
infra-host-ttl: 60
infra-lame-ttl: 120

infra-cache-numhosts: 10000
infra-cache-lame-size: 10k

do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: yes
do-daemonize: yes

#access-control: 0.0.0.0/0 allow
access-control: 192.168.100.0/27 allow
#access-control: 172.16.0.0/12 allow
#access-control: 10.0.0.0/8 allow
access-control: 127.0.0.0/8 allow
access-control: 0.0.0.0/0 refuse

chroot: �/etc/unbound�
username: �unbound�
directory: �/etc/unbound�
#logfile: �/etc/unbound/unbound.log�
#use-syslog: yes
logfile: ��
use-syslog: no
pidfile: �/etc/unbound/unbound.pid�
root-hints: �/etc/unbound/named.cache�

identity: �DNS�
version: �1.4″
hide-identity: yes
hide-version: yes
harden-glue: yes
do-not-query-address: 127.0.0.1/8
do-not-query-localhost: yes
module-config: �iterator�

#zone localhost
local-zone: �localhost.� static
local-data: �localhost. 10800 IN NS localhost.�
local-data: �localhost. 10800 IN SOA localhost. nobody.invalid. 1 3600 1200 604800 10800″
local-data: �localhost. 10800 IN A 127.0.0.1″

local-zone: �127.in-addr.arpa.� static
local-data: �127.in-addr.arpa. 10800 IN NS localhost.�
local-data: �127.in-addr.arpa. 10800 IN SOA localhost. nobody.invalid. 2 3600 1200 604800 10800″
local-data: �1.0.0.127.in-addr.arpa. 10800 IN PTR localhost.�

#zone dns.itvps.org
local-zone: �dns.itvps.org.� static
local-data: �dns.itvps.org. 86400 IN NS ns1.dns.itvps.org.�
local-data: �dns.itvps.org. 86400 IN SOA dns.itvps.org. hostmaster.dns.itvps.org. 3 3600 1200 604800 86400″
local-data: �dns.itvps.org. 86400 IN A 192.168.xx.xx�
local-data: �www.dns.itvps.org. 86400 IN A 192.168.xx.xx�
local-data: �ns1.dns.itvps.org. 86400 IN A 192.168.xx.xx�

local-data: �mail.dns.itvps.org. 86400 IN A 192.168.xx.xx�
local-data: �dns.itvps.org. 86400 IN MX 10 mail.dns.itvps.org.�
local-data: �dns.itvps.org. 86400 IN TXT v=spf1 a mx ~all�

local-zone: �xx.168.192.in-addr.arpa.� static
local-data: �xx.168.192.in-addr.arpa. 10800 IN NS dns.itvps.org.�
local-data: �xx.168.192.in-addr.arpa. 10800 IN SOA dns.itvps.org. hostmaster.dns.itvps.org. 4 3600 1200 604800 864000″
local-data: �xx.xx.168.192.in-addr.arpa. 10800 IN PTR dns.itvps.org.�

forward-zone:
name: �.�
forward-addr: 180.131.144.144
forward-addr: 180.131.145.145
forward-addr: 202.134.0.155
forward-addr: 203.130.196.155
forward-addr: 125.160.4.82
forward-addr: 202.134.0.61
forward-addr: 203.130.196.5
forward-addr: 222.124.198.150
forward-addr: 222.124.249.115
forward-addr: 8.8.8.8
forward-addr: 8.8.4.4

remote-control:
control-enable: yes
control-interface: 127.0.0.1
control-port: 953
server-key-file: �/etc/unbound/unbound_server.key�
server-cert-file: �/etc/unbound/unbound_server.pem�
control-key-file: �/etc/unbound/unbound_control.key�
control-cert-file: �/etc/unbound/unbound_control.pem�

klo udah silahkan cek filenya dl siapa tau ada yang error dengan perintah

unbound-checkconf /etc/unbound/unbound.conf

yang gw kasih tanda pagar silahkan sesuaikan dengan ip(yg ada xx nya) dan zonenya masing2..

untuk modem ato yang pake dhcp silahkan dipagar aja di depan masing2 kalimat yang gw bold diatas

klo udah silahkan restart unboundnya:D

/etc/init.d/unbound restart

sekarang tes (asumsi dah jalan)


root@BLITZ:~# nslookup 192.168.xx.xx
Server: 127.0.0.1
Address: 127.0.0.1#53

x.xx.168.192.in-addr.arpa name = dns.itvps.org.

root@BLITZ:~# nslookup dns.itvps.org
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: dns.itvps.org
Address: 192.168.xx.xx

klo udah silahkan tambahkan dns localhost di squid.conf nya

dns_nameservers 127.0.0.1

lalu rekonfigurasi ulang squidnya (dah tau jg khan perintahnya :p )
untuk melihat performanya silahkan di cek dengan perintah ini

unbound-control stats
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: INSTALASI DNS SRVER (BERIKAN PILIHAN)

Postby MasDjo » 05 Nov 2010, 09:09

Sama, sekarang saya juga pake unbound, lebih mudah sih cara instalasinya dan "katanya" lebih ringan dan lebih responsif dibanding bind9

Image

Return to “Ubuntu Server”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests