re-bind named to all interfaces

Mihai Moldovan ionic at ionic.de
Thu Apr 12 15:04:05 UTC 2012


* On 12.04.2012 04:49 PM, Phil Mayers wrote:
> "rndc reconfig" has worked when I've tried it in the past; are you sure you're
> running it in the right place? You want to run it in the "ip-up" / "ip-down"
> scripts, because IP might not be up when LCP is.

Absolutely positive. I'm running rndc reconfig in ip-up.d/90-named and
ip-down.d/90-named which are sourced by the ip-up/ip-down scripts. Did not work
for me. I should have added that I also tried firing up rndc reconfig manually
when ppp0 was certainly up, to no avail.

[0 running job(s)] {history#10003}  16:52:37 12-04-12
root at valery~# lsof -n -i :domain
COMMAND    PID  USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
named   982091 named   20u  IPv6 3247439153      0t0  TCP *:domain (LISTEN)
named   982091 named   21u  IPv4 3247439158      0t0  TCP 127.0.0.1:domain (LISTEN)
named   982091 named   22u  IPv4 3247439160      0t0  TCP 192.168.0.1:domain
(LISTEN)
named   982091 named  512u  IPv6 3247439152      0t0  UDP *:domain
named   982091 named  513u  IPv4 3247439157      0t0  UDP 127.0.0.1:domain
named   982091 named  514u  IPv4 3247439159      0t0  UDP 192.168.0.1:domain
[0 running job(s)] {history#10004}  16:52:40 12-04-12
root at valery~# ip addr sh dev ppp0
202: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc htb state
UNKNOWN qlen 3
    link/ppp
    inet 85.183.67.131 peer 213.191.89.42/32 scope global ppp0
[0 running job(s)] {history#10005}  16:53:08 12-04-12
root at valery~# which rndc
rndc: aliased to rndc -k /chroot/dns/etc/bind/rndc.key
[0 running job(s)] {history#10006}  16:53:12 12-04-12
root at valery~# rndc reconfig
[0 running job(s)] {history#10007}  16:53:15 12-04-12
root at valery~# lsof -n -i :domain
COMMAND    PID  USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
named   982091 named   20u  IPv6 3247439153      0t0  TCP *:domain (LISTEN)
named   982091 named   21u  IPv4 3247439158      0t0  TCP 127.0.0.1:domain (LISTEN)
named   982091 named   22u  IPv4 3247439160      0t0  TCP 192.168.0.1:domain
(LISTEN)
named   982091 named  512u  IPv6 3247439152      0t0  UDP *:domain
named   982091 named  513u  IPv4 3247439157      0t0  UDP 127.0.0.1:domain
named   982091 named  514u  IPv4 3247439159      0t0  UDP 192.168.0.1:domain


> There was some discussion on the list about setting the timer for re-discovery
> to zero; see the archives.

I guess that's the interface-interval directive Todd suggested... I'll reply to
that on his sub-thread.**


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4493 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20120412/41c6ad74/attachment.bin>


More information about the bind-users mailing list