Difference between revisions of "Implementasi ENUM"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 66: | Line 66: | ||
+ | ==Test ENUM== | ||
+ | |||
+ | Mengunakan perintah dig di lokalhost BIND | ||
+ | |||
+ | dig NAPTR 0.0.0.2.5.2.6.e164.id @127.0.0.1 | ||
+ | |||
+ | Harus keluar jawaban kira-kira berbunyi | ||
+ | |||
+ | ; <<>> DiG 9.6.1-P1 <<>> NAPTR 0.0.0.2.5.2.6.e164.id @127.0.0.1 | ||
+ | ;; global options: +cmd | ||
+ | ;; Got answer: | ||
+ | ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10744 | ||
+ | ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 | ||
+ | |||
+ | ;; QUESTION SECTION: | ||
+ | ;0.0.0.2.5.2.6.e164.id. IN NAPTR | ||
+ | |||
+ | ;; ANSWER SECTION: | ||
+ | 0.0.0.2.5.2.6.e164.id. 86400 IN NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2000@192.168.0.3!" . | ||
+ | |||
+ | ;; AUTHORITY SECTION: | ||
+ | 5.2.6.e164.id. 86400 IN NS ns.warnet.co.id. | ||
+ | |||
+ | ;; ADDITIONAL SECTION: | ||
+ | ns.warnet.co.id. 86335 IN A 76.163.126.2 | ||
+ | |||
+ | ;; Query time: 0 msec | ||
+ | ;; SERVER: 127.0.0.1#53(127.0.0.1) | ||
+ | ;; WHEN: Tue Nov 24 08:12:11 2009 | ||
+ | ;; MSG SIZE rcvd: 137 | ||
Revision as of 08:12, 24 November 2009
Pada dasarnya sebuah ENUM server adalah sebuah DNS server. Jadi jika anda mempunyai sebuah DNS server, dapat langsung berfungsi sebagai ENUM server.
Untuk menginstalasi ENUM Server, yang perlu dilakukan tidak banyak, yaitu,
Install DNS Server, pada Linux biasanya sudah ada paket BIND yang merupakan DNS server yang dapat di operasikan dengan mudah.
- Edit file /etc/named.conf untuk memberitahukan dimana kita menyimpan data untuk domain yang akan kita buat.
- Edit file data-data ENUM untuk memasukan nomor telepon masing-masing pelanggan.
Setup BIND untuk ENUM
Misalnya kita memperoleh alokasi nomor +625XXXX, maka kita perlu mengedit file
vi /etc/bind/named.conf.local
masukan entry domain 5.2.6.e164.id
zone "5.2.6.e164.id" IN { type master; file "/etc/bind/5.2.6.e164.id.db"; };
Semua data nomor telepon harus dimasukan ke file /etc/bind/5.2.6.e164.id.db
vi /etc/bind/5.2.6.e164.id.db
Isi, misalnya (contoh) dengan data sbb
$TTL 86400 @ IN SOA ns.warnet.co.id admin.warnet.co.id. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum
IN NS ns.warnet.co.id.
0.0.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2000@192.168.0.3!" . 1.0.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2001@192.168.0.3!" . 2.0.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2002@192.168.0.3!" . 3.0.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2003@192.168.0.3!" . 4.0.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2004@192.168.0.3!" . 5.0.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2005@192.168.0.3!" . 0.2.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2020@192.168.0.3!" . 1.2.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2021@192.168.0.3!" . 2.2.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2022@192.168.0.3!" . 0.3.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2030@192.168.0.3!" . 1.3.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2031@192.168.0.3!" . 2.3.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2032@192.168.0.3!" . 3.3.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2033@192.168.0.3!" . 0.5.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2050@192.168.0.3!" . 1.5.0.2 NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2051@192.168.0.3!" .
Yang artinya, nomor
+6252000 0.0.0.2.5.2.6.e164.id 2000@192.168.0.3 +6252001 1.0.0.2.5.2.6.e164.id 2001@192.168.0.3 +6252002 2.0.0.2.5.2.6.e164.id 2002@192.168.0.3
Setelah proses editing file dilakukan, jangan lupa untuk mengaktifkan dan men-start DNS melalui perintah,
/etc/init.d/bind9 restart
Test ENUM
Mengunakan perintah dig di lokalhost BIND
dig NAPTR 0.0.0.2.5.2.6.e164.id @127.0.0.1
Harus keluar jawaban kira-kira berbunyi
; <<>> DiG 9.6.1-P1 <<>> NAPTR 0.0.0.2.5.2.6.e164.id @127.0.0.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10744 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;0.0.0.2.5.2.6.e164.id. IN NAPTR ;; ANSWER SECTION: 0.0.0.2.5.2.6.e164.id. 86400 IN NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:2000@192.168.0.3!" . ;; AUTHORITY SECTION: 5.2.6.e164.id. 86400 IN NS ns.warnet.co.id. ;; ADDITIONAL SECTION: ns.warnet.co.id. 86335 IN A 76.163.126.2 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Nov 24 08:12:11 2009 ;; MSG SIZE rcvd: 137