Wednesday, November 2, 2011

Mempercepat Internet Ubuntu


Benar benar mantap setelah merasakan install program ini.

Dnsmasq menyediakan dua layanan, baik yang dapat digunakan secara terpisah.

* DNS layanan
* Layanan DHCP (termasuk fitur yang berhubungan dengan boot jaringan)

Sebuah cache DNS lokal dapat mempercepat browsing internet karena browser pengguna tidak perlu mengakses server nama domain ketika terlihat sebuah nama domain komputer telah dikunjungi sebelumnya.

DHCP memungkinkan komputer pengguna untuk mengalokasikan alamat jaringan ke komputer lain pada jaringan kabel atau nirkabel. Sebuah komputer membutuhkan alamat jaringan yang unik dalam rangka untuk melakukan akses internet.

Dnsmasq tidak dirancang untuk apa yang disebut "Internet Connection Sharing," Namun, itu tidak memberikan banyak layanan yang diperlukan di latar belakang. Dengan dnsmasq mengatur, hanya dua perintah tambahan dapat mengatur berbagi koneksi internet .

Caranya:


  • install programnya

    • sudo apt-get install dnsmasq


  • edit konfigurasinya

    • sudo gedit /etc/dnsmasq.conf

    • cari baris #listen-address=, edit jadikan listen-address=127.0.0.1

    • /etc/dhcp3/dhclient.conf

    • cari baris ke 20 #supersede domain-name "fugue.com home.vix.com";
      prepend domain-name-servers 127.0.0.1;
      request subnet-mask, broadcast-address, time-offset, routers,
      domain-name, domain-name-servers, host-name,
      netbios-name-servers, netbios-scope; edit jadikan   supersede domain-name "fugue.com home.vix.com";
      prepend domain-name-servers 127.0.0.1;
      request subnet-mask, broadcast-address, time-offset, routers,
      domain-name, domain-name-servers, host-name,
      netbios-name-servers, netbios-scope;

    • sudo gedit /etc/resolv.conf tambahkan nameserver 127.0.0.1 pada baris pertama

    • sudo /etc/init.d/dnsmasq restart

    • test dig ubuntu.com

rasakan hasilnya untuk /etc/resolv.conf supaya tidak berubah buka disini

reff:

https://help.ubuntu.com/community/Dnsmasq

Powered by Qumana

7 comments:

  1. di ubuntu ane setelah ane sudo gedit /etc/dhcp3/dhclient.conf kok isinya kosong ya....trus gmn nih?

    ReplyDelete
  2. # Configuration file for /sbin/dhclient, which is included in Debian's
    # dhcp3-client package.
    #
    # This is a sample configuration file for dhclient. See dhclient.conf's
    # man page for more information about the syntax of this file
    # and a more comprehensive list of the parameters understood by
    # dhclient.
    #
    # Normally, if the DHCP server provides reasonable information and does
    # not leave anything out (like the domain name, for example), then
    # few changes must be made to this file, if any.
    #

    option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

    send host-name "";
    #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
    #send dhcp-lease-time 3600;
    #supersede domain-name "fugue.com home.vix.com";
    prepend domain-name-servers 127.0.0.1;
    request subnet-mask, broadcast-address, time-offset, routers,
    domain-name, domain-name-servers, domain-search, host-name,
    netbios-name-servers, netbios-scope, interface-mtu,
    rfc3442-classless-static-routes, ntp-servers;
    #require subnet-mask, domain-name-servers;
    #timeout 60;
    #retry 60;
    #reboot 10;
    #select-timeout 5;
    #initial-interval 2;
    #script "/etc/dhcp3/dhclient-script";
    #media "-link0 -link1 -link2", "link0 link1";
    #reject 192.33.137.209;

    #alias {
    # interface "eth0";
    # fixed-address 192.5.5.213;
    # option subnet-mask 255.255.255.255;
    #}

    #lease {
    # interface "eth0";
    # fixed-address 192.33.137.200;
    # medium "link0 link1";
    # option host-name "andare.swiftmedia.com";
    # option subnet-mask 255.255.255.0;
    # option broadcast-address 192.33.137.255;
    # option routers 192.33.137.250;
    # option domain-name-servers 127.0.0.1;
    # renew 2 2000/1/12 00:00:01;
    # rebind 2 2000/1/12 00:00:01;
    # expire 2 2000/1/12 00:00:01;
    #}

    ReplyDelete
  3. coba dulu gan,

    btw blogupp agan di tolak tuh...

    sedikit info biar di aproved sama blogupp Klik disini

    ReplyDelete
  4. om, sebelum instal dnsmasq harus nambah apt source dlu gak? apa langsung udah ada di repo ubuntu?

    ReplyDelete
  5. Alir : langsung aja bisa dari USC atau Synaptic

    ReplyDelete