Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395785 - =net-dns/bind-tools-9.8.1 =net-dns/bind-9.8.1_p1 nsupdate's default path for session.key doesn't reflect BIND's default
Summary: =net-dns/bind-tools-9.8.1 =net-dns/bind-9.8.1_p1 nsupdate's default path for ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-23 08:12 UTC by dwfreed
Modified: 2011-12-24 22:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dwfreed 2011-12-23 08:12:52 UTC
When using nsupdate -l, nsupdate attempts to load session.key from /var/lib/run/named/session.key, but BIND, by default, stores session.key in /var/run/named/session.key.  Either BIND should be corrected to use /var/lib/run/named/session.key by default, or bind-tools should be corrected to use /var/run/named/session.key by default.

Reproducible: Always

Steps to Reproduce:
1. nsupdate -l
Actual Results:  
nsupdate tries to load session.key from /var/lib/run/named/session.key, which doesn't exist, because BIND is creating session.key at /var/run/named/session.key

Expected Results:  
Either nsupdate should load session.key from /var/run/named/session.key, or BIND should create session.key at /var/lib/run/named/session.key

Looking at log output for BIND, it mentions that it was configured with '--localstatedir=/var/lib' _and_ '--localstatedir=/var'.  '--localstatedir=/var' appears after '--localstatedir=/var/lib' so it seems that it is winning out in BIND's configure script.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2011-12-24 22:40:28 UTC
Fixed in CVS, thanks!

Re-sync in about 1-2 hours and re-merge bind-tools.
Note: It will still not work when using a chrooted named.