several reasons to use dnsmasq among others of course very easy for the configuration.Like once said configuration can produce and dhcp server dns server.
1. Install the package if it is not:
# apt-get install dnsmasq
2. Edit / etc / hosts:
# mcedit / etc / hosts
Add / insert the ip and hostname as you wish:
127.0.0.1 localhost
192.168.10.1 server10 server10.lks10.sch.id lks10.sch.id
www.server10.lks10.sch.idwww.lks10.sch.id
Add the ip and hostname for Squid Proxy ACL and simulation:
100.100.100.1 www.yahoo.com
100.100.100.2 www.detik.com
100.100.100.3 www.kompas.com
200.200.200.1 www.debian.org
200.200.200.2 www.redhat.org
200.200.200.3 www.google.com
200.200.200.4 www.susefaq.sourceforge.net
200.200.200.5 www.linux.or.id
3. Create well as edit the /etc/resolv.conf:
# mcedit /etc/resolv.conf
Fill to DNS Resolve (Hierarchical control on top / parent of the server, added here):
search localdomain optional, may not included
search lks10.sch.id optional, may not be included
nameserver 127.0.0.1
nameserver 192.168.10.1
Add the ip and hostname for Squid Proxy ACL and simulation:
100.100.100.1 www.yahoo.com
100.100.100.2 www.detik.com
100.100.100.3 www.kompas.com
200.200.200.1 www.debian.org
200.200.200.2 www.redhat.org
200.200.200.3 www.google.com
200.200.200.4 www.susefaq.sourceforge.net
200.200.200.5 www.linux.or.id
3. Create well as edit the /etc/resolv.conf:
# mcedit /etc/resolv.conf
Fill to DNS Resolve (Hierarchical control on top / parent of the server, added here):
search localdomain optional, may not included
search lks10.sch.id optional, may not be included
nameserver 127.0.0.1
nameserver 192.168.10.1
No comments:
Post a Comment