{% r.title %}
Read more…
bu yazı http://www.g-loaded.eu sitesinden alıntıdır…
Önce kurulum yapıp kullanıcı tanımlarını yapalım,
yum install dnsmasq groupadd -r dnsmasq useradd -r -g dnsmasq dnsmasq
Sonra sırasıyla,
cp /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
listen-address=127.0.0.1 port=53 bind-interfaces user=dnsmasq group=dnsmasq pid-file=/var/run/dnsmasq.pid log-facility=/var/log/dnsmasq.log log-queries domain-needed bogus-priv no-hosts dns-forward-max=150 cache-size=1000 #no-negcache neg-ttl=3600 resolv-file=/etc/resolv.dnsmasq no-poll
cp /etc/resolv.conf /etc/resolv.dnsmasq
/etc/resolv.conf dosyasına,
nameserver 127.0.0.1
/etc/resolv.dnsmasq dosyasına,
nameserver 195.175.39.39 nameserver 195.175.39.40
/etc/init.d/dnsmasq start
chkconfig dnsmasq on
son olarak log dongusunu ayarlıyoruz
/etc/logrotate.d/dnsmasq dosyasina …….
/var/log/dnsmasq.log { monthly missingok notifempty delaycompress sharedscripts postrotate [ ! -f /var/run/dnsmasq.pid ] || kill -USR2 `cat /var/run/dnsmasq.pid` endscript create 0640 dnsmasq dnsmasq }
bitti…