Reload BIND to listen on additional interface?

Reindl Harald h.reindl at thelounge.net
Thu Jul 31 11:32:03 UTC 2014


Am 31.07.2014 um 13:24 schrieb Johannes Kastl:
> in the quest to use a master behind a Router with changing IPs, I set
> up a VPN and told bind on both sides to listen on the additional VPN-IPs.
> 
> But, sometimes they are not available at bind startup or the VPN loses
> connection. So, when the VPN connection is ready again, I can let
> OpenVPN run a script. My idea was to use this script to tell bind,
> that it can now bind to the interface again.
> 
> Question now is, which (rndc) command does that? Does a ‘rndc
> reconfig‘ tell BIND to newly bind to the interfaces?

i am doing reloads of named with "killall -HUP named" just because i
disabled rndc completly for security reasons and configurations
are generated with own software only needs named to reload

pretty sure it will also force look for new interfaces or gone ones

[root at srv-rhsoft:~]$ tail named.log
#31-Jul-2014 13:30:05.016 general: automatic empty zone: D.F.IP6.ARPA
31-Jul-2014 13:30:05.016 general: automatic empty zone: 8.E.F.IP6.ARPA
31-Jul-2014 13:30:05.016 general: automatic empty zone: 9.E.F.IP6.ARPA
31-Jul-2014 13:30:05.016 general: automatic empty zone: A.E.F.IP6.ARPA
31-Jul-2014 13:30:05.016 general: automatic empty zone: B.E.F.IP6.ARPA
31-Jul-2014 13:30:05.016 general: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
31-Jul-2014 13:30:05.037 general: reloading configuration succeeded
31-Jul-2014 13:30:05.039 general: reloading zones succeeded
31-Jul-2014 13:30:05.057 general: all zones loaded
31-Jul-2014 13:30:05.057 general: running

[root at srv-rhsoft:~]$ killall -HUP named

[root at srv-rhsoft:~]$ tail named.log
31-Jul-2014 13:30:26.443 general: automatic empty zone: D.F.IP6.ARPA
31-Jul-2014 13:30:26.443 general: automatic empty zone: 8.E.F.IP6.ARPA
31-Jul-2014 13:30:26.443 general: automatic empty zone: 9.E.F.IP6.ARPA
31-Jul-2014 13:30:26.443 general: automatic empty zone: A.E.F.IP6.ARPA
31-Jul-2014 13:30:26.443 general: automatic empty zone: B.E.F.IP6.ARPA
31-Jul-2014 13:30:26.443 general: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
31-Jul-2014 13:30:26.446 general: reloading configuration succeeded
31-Jul-2014 13:30:26.447 general: reloading zones succeeded
31-Jul-2014 13:30:26.464 general: all zones loaded
31-Jul-2014 13:30:26.464 general: running





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20140731/4d1ab329/attachment.bin>


More information about the bind-users mailing list