1. Instal dnsmasq :
cmink@linux :~$ sudo apt-get install dnsmasq
2. konfigurasi file dnsmasq.conf yang terletak pada direktory /etc/dnsmasq.conf seperti berikut :
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
#resolv ke DNS upstream
resolv-file=/etc/resolv-cmink.conf
# Add local-only domains here, queries in these domains are answered
# from /etc/hosts or DHCP only.
local=/localnet/
# Set the cachesize here.
cache-size=10000
# If you want to disable negative caching, uncomment this.
no-negcache
neg-ttl=3600
3. Buat file /etc/resolv-cmink.conf ( nama file terserah sesuai path yg kita set di /etc/dnsmasq.conf) :
nameserver 182.255.0.37
nameserver 182.255.2.37
4. Edit file /etc/resolv.conf
nameserver 127.0.0.1
5. Restart service dnsmasq
cmink@linux:~$ sudo /etc/init.d/dnsmasq restart
Hasil Ujicoba bisa di lihat perbedaannya :
ujicoba I

ujicoba II

0 Comments
Leave a Reply