[yadifa-users] Issues with cfgreload on yadifa 2.0.6

Toki Winter toki at tokiwinter.com
Tue Apr 28 02:26:25 CEST 2015


Hi,

I'm running YADIFA 2.0.6 and am unable to dynamically adda  zone:

# /usr/local/yadifa/sbin/yadifad --version
yadifad 2.0.6-4725 (2015-04-17)

If I create the zonefile, and add an entry to my yadifad.conf, then
cfgreload, the new config is not reloaded:

[root at freebsd-srv1 /var/chroot/yadifa/var/zones/masters]# sed 's/
example.com/example6.com/g'
/var/chroot/yadifa/var/zones/masters/example.com.zone >
/var/chroot/yadifa/var/zones/masters/example6.com.zone
[root at freebsd-srv1 /var/chroot/yadifa/var/zones/masters]# cat >>
/etc/yadifad.conf <<_EOF_
> <zone>
>        domain         example6.com
>        file           masters/example6.com.zone
>        type           master
> </zone>
> _EOF_
[root at freebsd-srv1 /var/chroot/yadifa/var/zones/masters]#
/usr/local/yadifa/bin/yadifa -s 127.0.0.1 -t cfgreload
;; ->>HEADER<<- status: NOERROR, id: 48944
;; Query time: 2 msec
;; WHEN: Mon Apr 27 19:14:56 2015
;; MSG SIZE rcvd: 17

[root at freebsd-srv1 /var/chroot/yadifa/var/zones/masters]# dig NS
example6.com @localhost

; <<>> DiG 9.10.1 <<>> NS example6.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 12664
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;example6.com.            IN    NS

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Apr 27 19:15:16 AEST 2015
;; MSG SIZE  rcvd: 41

However, if I restart YADIFA, the zone is correctly loaded:

[root at freebsd-srv1 /var/chroot/yadifa/var/zones/masters]#
/usr/local/yadifa/bin/yadifa -s 127.0.0.1 -t SHUTDOWN
;; ->>HEADER<<- status: NOERROR, id: 6699
;; Query time: 1 msec
;; WHEN: Mon Apr 27 19:15:51 2015
;; MSG SIZE rcvd: 17
[root at freebsd-srv1 /var/chroot/yadifa/var/zones/masters]#
/usr/local/yadifa/sbin/yadifad
[root at freebsd-srv1 /var/chroot/yadifa/var/zones/masters]# dig NS
example6.com @localhost

; <<>> DiG 9.10.1 <<>> NS example6.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45039
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 3
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;example6.com.            IN    NS

;; ANSWER SECTION:
example6.com.        86400    IN    NS    ns1.example6.com.
example6.com.        86400    IN    NS    ns2.example6.com.

;; ADDITIONAL SECTION:
ns1.example6.com.    86400    IN    A    10.1.1.190
ns2.example6.com.    86400    IN    A    10.1.1.191

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Apr 27 19:16:05 AEST 2015
;; MSG SIZE  rcvd: 109

Am I doing something silly?

Cheers,
Toki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.yadifa.eu/archives/yadifa-users/attachments/20150428/93566a6b/attachment.html 


More information about the yadifa-users mailing list