04 November 2014

dnsmasq: forward ke dns berbeza, bergantung domain

1) file /etc/resolv.conf
# local dnsmasq server
nameserver 127.0.0.1

# Your main dns server (dnsmasq will forward all requests to this server)
nameserver 10.20.1.1

2) file /etc/dnsmasq.conf
# Tells dnsmasq to forward anything with the domain of remote.local to dns server 10.25.11.2
server=/remote.local/10.25.11.2

# Listen to requests only coming from the local machine
listen-address=127.0.0.1

# Do not cache anything
# A decent dns server will already cache for your local network
cache-size=0



ref: http://pyther.net/2010/12/dns-conditional-forwarding-dnsmasq/ 

No comments:

Post a Comment

Terima kasih