script - automatic change A record

2013-11-25 Thread Paweł Ch .
Hi list, I would like to write script that change two entry in my zone file: SOA and A record. I have 2 web site: mail site site1.tld and backup site site2.tld. Script should monitor site1.tld and when site is unavailable it should change A record in zone file to indicate to site2.tld. If site1.t

Test logging

2013-10-22 Thread Paweł Ch .
Hi list, How to test that this logging works: logging { channel security_file { file "/var/log/named/security.log" versions 3 size 30m; severity info; print-time yes; }; category security { security_file; }; The file is created /var/log/named/security.log but it is empty.

Re: Bind logging

2013-10-17 Thread Paweł Ch .
Thanks, it works. On 11 October 2013 15:34, Brian Cuttler wrote: > > > I had a similar problem when moving to a newer version, the > prior had run as root and logged to files in /var/log, the > new version running as non-root couldn't do so. > > I created a subdirectory, and moved the logging i

Bind logging

2013-10-11 Thread Paweł Ch .
Hi list, I would like to setup fail2ban service on debina 6.0. I must setup bind logging. My bind server can't log into /var/log/named/security.log # cat named.conf.options //acl for manchines in dmz100.local network acl dmz { 10.0.0.0/24; }; options { allow-query { none; }; allow-qu

Re: view

2013-10-03 Thread Paweł Ch .
one "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; On 3 October 2013 19:55, Steven Carr wrote: > Please post your full named.conf config fi

view

2013-10-03 Thread Paweł Ch .
Hi list I have problem with views in bind9 on debian 6. I configured server like here https://wiki.debian.org/Bind9 and it works. When i add entry: view "dmz" { match-clients { 10.0.0.0/24; }; }; bind9 can't start. What I can do to solve problem? Thanks __