Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319427 - dnsextd from net-misc/mDNSResponder-212.1 is missing a user and a valid configuration file
Summary: dnsextd from net-misc/mDNSResponder-212.1 is missing a user and a valid confi...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 403537
Blocks:
  Show dependency tree
 
Reported: 2010-05-12 14:48 UTC by Stuart Shelton
Modified: 2012-07-05 22:15 UTC (History)
0 users

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 Stuart Shelton 2010-05-12 14:48:15 UTC
If dnsextd is installed on a different machine to bind (a valid configuration), then the dnsext daemon can't be started because the mDNSResponder ebuild doesn't create a 'named' user.

The mDNSResponder ebuild should either create a 'named' user, or the daemon should be run as a different user ('nobody'?)

With the user changed, starting the daemon results in:

 * Starting dnsextd ...
/usr/sbin/dnsextd: invalid option -- 'z'
Usage: dnsextd [-f <config file>] [-vhd] ...
Use "dnsextd -h" for help
 * Failed to start dnsextd [ !! ]

The init script starts dnsextd as:

start-stop-daemon --start --quiet --user named --pid /var/run/dnsextd.pid --exec /usr/sbin/dnsextd -- -z "${DNSEXTD_ZONE}" -s "${DNSEXTD_NAMESERVER}" ${DNSEXTD_ARGS}

... so the init script needs to be updated as dnsextd no longer accepts the '-z' option.

It appears that all dnsextd configuration is now contained within a conf file, available from http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-212.1/mDNSShared/dnsextd.conf (and included with the package source).  This now uses a bind-like format - but I've so far been able to put together a configuration which both uses a shared key to authorise updates and which satisfies the dnsextd parser.  It doesn't help that documentation and even output with verbose logging is minimal, and the the line-numbers which dnsextd reports being unable to parse are completely wrong... although it now occurs to me that it may be double-counting newlines.  In any case, I was told that an errors occurred on line 121 of a ~67 line file :(
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-07-05 22:15:52 UTC
mDNSResponder has been removed.