Membuat DNS Server di Ubuntu

Embed Size (px)

Citation preview

  • 8/10/2019 Membuat DNS Server di Ubuntu

    1/12

    1. Konfigurasi Ip address. (misalnya ip yang ingin digunaka adalah 192.168.9.1)nano /etc/net ork/interfaces

    u!ah seperti"

    2. Install !ind9 dan pindah ke direktori !ind# Install

    # $indah direktori

    %. &dit filenamed.conf.local

  • 8/10/2019 Membuat DNS Server di Ubuntu

    2/12

    '. Konfigurasi named.conf dengan dua domain. e!agai contoh !uat tika.com dan smkn1.com

    . *uat dan edit +d!.tika, dengan cara copy paste +d!.local, ke +d!.tika, dan +d!.smkn1,# coppy paste

    cp d!.local d!.tika cp d!.local d!.smkn1# &dit d!.tika men-adi (ip yang dapat digunakan sesuai keinginan disini yang I$ digunakan192.168.9.1)

  • 8/10/2019 Membuat DNS Server di Ubuntu

    3/12

    # &dit d!.tika men-adi (ip yang dapat digunakan sesuai keinginan disini yang I$ digunakan1 2.10.10.1)

    . *uat dan edit +d!.192, dan +d!.1 2, dengan cara copy paste +d!.2 , ke +d!.192, dan +d!.1 2,# opy $astecp d!.2 d!.192 (ket" d!.192 untuk domain tika.com)cp d!.2 d!.1 2 (ket" d!.1 2 untuk domain smkn1.com)# &dit d!.192 men-adi seperti ini" (ip yang dapat digunakan sesuai keinginan disini yang I$digunakan 192.168.9.1)

  • 8/10/2019 Membuat DNS Server di Ubuntu

    4/12

    # &dit d!.1 2 men-adi seperti ini" (ip yang dapat digunakan sesuai keinginan disini yang I$digunakan 1 2.10.10.1)

    6. $eriksa hasil editan dari d!.tika d!.smkn1 dan d!.192 d!.1 2. ingga semuanya oknamed#check3one localhost /etc/!ind/d!.localhostcontoh"named#check3one tika.com /etc/!ind/d!.tikanamed#check3one tika.com /etc/!ind/d!.smkn1named#check3one tika.com /etc/!ind/d!.192named#check3one tika.com /etc/!ind/d!.1 2

    . &dit +/etc/hosts,4im.tiny /etc/hostsu!ah men-adi"

    8. &dit +/etc/resol4.conf,4im.tiny /etc/resol4.conf

  • 8/10/2019 Membuat DNS Server di Ubuntu

    5/12

    9. 5estart dns/etc/init.d/!ind9 restart

    10. akukan pengu-ian1. ek dengan nslookup

    2. ek dengan dig

  • 8/10/2019 Membuat DNS Server di Ubuntu

    6/12

    %. $ing

  • 8/10/2019 Membuat DNS Server di Ubuntu

    7/12

    1. Install apache2apt#get install apache 2

    2. edit file /4ar/ /html/inde7.html

    %. Install php php mys l mys l#ser4er

    catatan" !ila diminta pass ord masukan pass ord sesuai keinginan. ntuk contohpass ordnya satu dan usernamenya root

    '. *uat file info.php

    . restart apache dan lakukan u-ico!a di !ro ser

  • 8/10/2019 Membuat DNS Server di Ubuntu

    8/12

    6. Install phpmyadmin

    . konfigurasi file /etc/phpmyadmin/apache.conf

    8. -alankan phpmyadmin melalui url

  • 8/10/2019 Membuat DNS Server di Ubuntu

    9/12

    9. &dit /etc/apache2/sites#ena!led/000#default.conf

    &dit men-adi seperti ini"

    :;irtual ost match this 4irtual host. Bor the default 4irtual host (this file) this > 4alue is not decisi4e as it is used as a last resort host regardless. > o e4er you must set it for any further 4irtual host e7plicitly. er4er@ame .tika.com

    er4erCdmin e!masterDtika.com

    Eocument5oot /4ar/ /

    :Eirectory /4ar/ /= Fptions Bollo ym inks Cllo F4erride @one :/Eirectory=

    :Eirectory /4ar/ /=

  • 8/10/2019 Membuat DNS Server di Ubuntu

    10/12

    Fptions Inde7es Bollo ym inks Gulti;ie s Cllo F4erride @one Frder allo deny allo from all :/Eirectory=

    criptClias /cgi#!in/ /usr/li!/cgi#!in/ :Eirectory H/usr/li!/cgi#!inH= Cllo F4erride @one Fptions &7ec JI #Gulti;ie s ym inksIfF nerGatch Frder allo deny Cllo from all :/Eirectory=> C4aila!le logle4els" trace8 ... trace1 de!ug info notice arn > error crit alert emerg. > It is also possi!le to configure the logle4el for particular > modules e.g. > og e4el info ssl" arn

    &rror og LC$C &M FJMEI5N/error.log ustom og LC$C &M FJMEI5N/access.log com!ined

    > Bor most configuration files from conf#a4aila!le/ hich are > ena!led or disa!led at a glo!al le4el it is possi!le to > include a line for only one particular 4irtual host. Bor e7ample the > follo ing line ena!les the JI configuration for this host only > after it has !een glo!ally disa!led ith Ha2disconfH. >Include conf#a4aila!le/ser4e#cgi#!in.conf:/;irtual ost=

    :;irtual ost match this 4irtual host. Bor the default 4irtual host (this file) this > 4alue is not decisi4e as it is used as a last resort host regardless. > o e4er you must set it for any further 4irtual host e7plicitly. er4er@ame .smkn1.com

    er4erCdmin e!masterDsmkn1.com Eocument5oot /4ar/ /smkn1

    :Eirectory /4ar/ /smkn1= Fptions Bollo ym inks Cllo F4erride @one :/Eirectory=

  • 8/10/2019 Membuat DNS Server di Ubuntu

    11/12

    :Eirectory /4ar/ /smkn1= Fptions Inde7es Bollo ym inks Gulti;ie s Cllo F4erride @one

    Frder allo deny allo from all

    :/Eirectory= criptClias /cgi#!in/ /usr/li!/cgi#!in/

    :Eirectory H/usr/li!/cgi#!inH= Cllo F4erride @one Fptions &7ec JI #Gulti;ie s ym inksIfF nerGatch Frder allo deny Cllo from all :/Eirectory=

    > C4aila!le logle4els" trace8 ... trace1 de!ug info notice arn > error crit alert emerg. > It is also possi!le to configure the logle4el for particular > modules e.g. > og e4el info ssl" arn

    &rror og LC$C &M FJMEI5N/error.log ustom og LC$C &M FJMEI5N/access.log com!ined

    > Bor most configuration files from conf#a4aila!le/ hich are > ena!led or disa!led at a glo!al le4el it is possi!le to > include a line for only one particular 4irtual host. Bor e7ample the > follo ing line ena!les the JI configuration for this host only > after it has !een glo!ally disa!led ith Ha2disconfH. >Include conf#a4aila!le/ser4e#cgi#!in.conf:/;irtual ost=

    > 4im" synta7Oapache tsO' s O' stsO' sr noet10. *uat direktori e! ser4er untuk smkn1 dalam /4ar/

    11. *uat file inde7.html di smkn1 dengan format

  • 8/10/2019 Membuat DNS Server di Ubuntu

    12/12

    12. akukan pengecekan di e! !ro ser smkn1.com dan tika.com