[solved] Bind DNS does not allow to transfer zones to a slave DNS

2 posts / 0 new
Last post
#1 Wed, 02/03/2010 - 07:58
sekijr

[solved] Bind DNS does not allow to transfer zones to a slave DNS

Hi,

I'm using Virtualmin 3.76.gpl on my Debian 5.0.3 and I want to set up a Master DNS on this machine with option to transfer zones to a free DNS service based on xname at http://freedns.sgh.waw.pl/ where it would be my slave DNS.

So I've set up a domain foo.com by creating virtual server (Virtualmin auto created a zone for the domain) and adjusted the zone for my needs. My zone looks like that:

/var/lib/bind/foo.com.hosts

$ttl 15M
foo.com. IN SOA foo.com. admin.foo.com. (
201002028
15M
15M
15M
15M )
@ IN NS foo.com.
@ IN NS fns1.sgh.waw.pl.
@ IN NS fns2.sgh.waw.pl.
@ IN A 123.123.123.123
www.foo.com. IN A 123.123.123.123
admin.foo.com. IN A 123.123.123.123
webmail.foo.com. IN A 123.123.123.123
foo.com. IN TXT "v=spf1 a mx a:foo.com ip4:123.123.123.123 ?all"
foo.com. IN PTR 123.123.123.123

/etc/bin/named.conf.local

zone "foo.com" {
type master;
file "/var/lib/bind/foo.com.hosts";
allow-transfer {
193.111.27.194;
194.145.96.21;
};
notify yes;
also-notify {
193.111.27.194;
194.145.96.21;
};
check-names warn;
allow-update {
193.111.27.194;
194.145.96.21;
};
};

193.111.27.194 and 194.145.96.21 are IP's of freeDNS service.

In my opinion this configuration should allow to get the "copy" of zone from foo.com to DNSs which addresses are 193.111.27.194 and 194.145.96.21 am I right or not? Meanwhile DiG commands show this results:

eserver:~# dig @foo.com foo.com axfr

; <<>> DiG 9.5.1-P3 <<>> @123.123.123.123 foo.com axfr
; (1 server found)
;; global options: printcmd
; Transfer failed.

and:

eserver:~# dig @123.123.123.123 foo.com axfr -b 194.145.96.21

dig: isc_socket_bind: address not available

Can someone help me before my head is getting burst?

Sun, 02/07/2010 - 16:53
sekijr

Weird, all i had to do is:

$ pstree //so I could see the processes of named - it was 10 of them
then:
$ killall named //killed all of them
and started Bind9 via Virtualmin by clicking Start Bind in top right corner

Still have no clue why it wasn't working before. Maybe by stopping and starting Bind by clicking the link in Virtualmin some processes connected with Bind9 aren't being killed and keeping some configs?

Right now, even if I add some new Virtual server with old/new domain with creating DNS zone it's working without killall named.

Topic locked