[Bug 446017] New: /etc/host.conf: line:xx bad command `mdns off'
https://bugzilla.novell.com/show_bug.cgi?id=446017 Summary: /etc/host.conf: line:xx bad command `mdns off' Product: openSUSE 11.1 Version: Factory Platform: x86-64 OS/Version: All Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: paca@sci.fi QAContact: qa@suse.de Found By: Community User To resolve .local domain via dns "man host.conf" suggest to add command mdns off to host.conf. After adding that line, I only got error like on subject field. And cannot resolve .local-domain via dns. This is major error for all sites using AD-domain named like site.local. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 Robert Vojcik <rvojcik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |pgajdos@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User pgajdos@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c1 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |paca@sci.fi --- Comment #1 from Petr Gajdos <pgajdos@novell.com> 2008-11-20 02:33:07 MST --- Sorry, exactly when you get this error? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c2 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sbrabec@novell.com --- Comment #2 from Stanislav Brabec <sbrabec@novell.com> 2008-11-20 06:17:04 MST --- Could you try to remove "mdns4_minimal [NOTFOUND=return]" from /etc/nsswitch.conf, record "hosts", to get: hosts: files dns -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c3 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pbaudis@novell.com --- Comment #3 from Stanislav Brabec <sbrabec@novell.com> 2008-11-20 06:46:25 MST --- Petr, do you know more about "mdns on/off" in host.conf? In my tests, it seems to not be supported any more. Bug 267222 and bug 329035 indicate the same. In my test: ping npi2a8296.local with "mdns on" in host.conf and mdns4_minimal in /etc/nssswitch.conf: ping not_exists.local .. delay ~5sec /etc/host.conf: line 16: bad command `mdns on' ping: unknown host not_exists.local ping npi2a8296.local PING npi2a8296.local (10.20.0.54) 56(84) bytes of data. 64 bytes from hpp2015dn.suse.cz (10.20.0.54): icmp_seq=1 ttl=255 time=1.82 ms With "mdns off": The same, only bad command is not `mdns off'. Without mdns4_minimal in /etc/nssswitch.conf, both with "mdns on" and "mdns off": ping npi2a8296.local ping: unknown host npi2a8296.local -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User paca@sci.fi added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c4 --- Comment #4 from Petri Asikainen <paca@sci.fi> 2008-11-22 04:16:34 MST --- I think same after reading bug 267222 and bug 329035 that "mdsn off" is not supported any more. After updating /etc/nsswitch.conf as you suggested. And removing mdns off from host conf, I get no this error anymore. So man page of host.conf should be updated. Then this bug can be closed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User paca@sci.fi added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c5 Petri Asikainen <paca@sci.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|paca@sci.fi | --- Comment #5 from Petri Asikainen <paca@sci.fi> 2008-11-22 04:17:48 MST --- Removing NEEDINFO -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User pgajdos@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c6 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pgajdos@novell.com |pbaudis@novell.com --- Comment #6 from Petr Gajdos <pgajdos@novell.com> 2008-11-24 06:32:45 MST --- Information about mdns on/off was removed from host.conf.5 manual page. Petr, could you please modify nsswitch.conf.5? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c7 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pgajdos@novell.com Status|NEW |NEEDINFO Info Provider| |coolo@novell.com --- Comment #7 from Stanislav Brabec <sbrabec@novell.com> 2008-11-24 07:11:34 MST --- There is nothing to modify in nsswitch.conf.5. nss-mdns uses nsswitch.conf exactly in documented way. The easiest possible way to turn MDNS off in openSUSE 11.1 and SLE11: Don't install nss-mdns package. It's impossible! GNOME requires libavahi, libavahi requires avahi, avahi requires nss-mdns. I would propose to break this dependency in this point: libavahi should not require avahi. Consider it only as a library. To Coolo: It may have a consequence in dependency tree of selection. Are you OK do do it now? Then we may modify release notes and maybe upgrade process: Turning MDNS off: "mdns off" on /etc/host.conf is no more supported. Please remove nss-mdns packages and its dependencies to get ".local" domain resolved by a standard DNS (as required e. g. by Active Directory). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User pbaudis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c8 --- Comment #8 from Petr Baudis <pbaudis@novell.com> 2008-11-24 07:16:44 MST --- Is avahi still going to be installed by default at least on SLED? It's extremely useful especially on notebooks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User pbaudis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c9 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tgagne@wideopenwest.com --- Comment #9 from Petr Baudis <pbaudis@novell.com> 2008-11-24 07:17:45 MST --- *** Bug 267222 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=267222 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c10 --- Comment #10 from Stanislav Brabec <sbrabec@novell.com> 2008-11-24 07:30:22 MST --- Yes, it is introduced at least by GNOME and probably in the default selection. After change proposed in comment #7, this dependency chain will break. So we will need: - Install avahi by default independently on package dependenciens. - Make avahi and nss-mdns easily removable for users of AD (MDNS and AD resolving of .local domain are conflicting). Yet another possible solution: Make possible to install avahi without nss-mdns. It would keep Zeroconf to be active, but some parts of avahi that depend on evaluation of ".local" domain via MDNS (nss-mdns) will break (e. g. avahi-bookmarks from python-avahi). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c11 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |locilka@novell.com, ke@novell.com, | |behlert@novell.com, kukuk@novell.com --- Comment #11 from Stanislav Brabec <sbrabec@novell.com> 2008-11-24 08:36:04 MST --- We need to design "MDNS off" upgrade procedure SLE10->SLE11 and probably document turning MDNS off in release notes. Upgrade procedure: If "mdns off" is present in /etc/host.conf, then "don't install package nss-mdns and dependencies" are pretty non-standard hacks. Editing of /etc/nssswitch.conf by users is not so straightforward - see "rpm -q --scripts nss-mdns". Up to now, packages use implication: avahi is present => ".local" is resolved by MDNS. So we also need following changes: - Allow to install nss-mdns without activating of MDNS for ".local" domain. - Programs depending on ".local" resolved by MDNS should check for it. (e. g. avahi-bookmarks) The simplest way would be mdns-on and mdns-off scripts, based on %post and %postun of nss-mdns. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c12 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|coolo@novell.com | --- Comment #12 from Stephan Kulow <coolo@novell.com> 2008-11-24 08:43:38 MST --- ok, I'll add avahi to all high level patterns -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User lnussel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c13 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@novell.com --- Comment #13 from Ludwig Nussel <lnussel@novell.com> 2008-12-03 04:20:15 MST --- FWIW there is no need to actually remove mdns4_minimal from nsswitch.conf to turn off mdns. That module is supposed to do nothing if the avahi daemon is not running. So chkconfig avahi-daemon off rcavahi-daemon stop should be sufficient to turn off mdns -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c14 --- Comment #14 from Stanislav Brabec <sbrabec@novell.com> 2008-12-03 05:27:17 MST --- Confirming that stopping of avahi re-enables DNS queries for .local? But I guess it is not as flexible as nssswitch.conf: Several packages complain, if avahi is not running. For example use of DNS-SD inside DNS .local domain will not be possible (e. g. use of DAAP inside AD)? I have read the documentation, and found more possible settings: Resolve .local exclusively via IPv4 MDNS, the rest exclusively via DNS: hosts: files mdns4_minimal [NOTFOUND=return] dns (the default) Resolve .local exclusively via IPv4 MDNS, the rest via DNS, then MDNS: hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 (another possible default, may cause obsolete DNS queries, but AD .local works out of the box) Try .local first via IPv4 MDNS, then try everything via DNS: hosts: files mdns4_minimal dns Try .local first via IPv4 MDNS, the rest first via DNS: hosts: files mdns4_minimal dns mdns4 (Note: non-existing .local will cause 2 MDNS and 1 DNS queries.) Try everything first via IPv4 MDNS, then with DNS: hosts: files mdns4 dns (useful for users of with Zeroconf ad-hoc network instead of DHCP) One can combine IPv4 and IPv6 MDNS. I am thinking about sysconfig, that will allow smart configuration: MDNS_LOCAL=(exclusive|preferred|world) default: currently "exclusive", but "preferred" may be an option MDNS_WORLD=(exclusive|preferred|fallback|none) default=currently "none", but better may be "fallback" MDNS_IPv4=(none|local|world|both) default: both MDNS_IPv6=(none|local|world|both) default: none -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User lnussel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c15 --- Comment #15 from Ludwig Nussel <lnussel@novell.com> 2008-12-03 06:48:59 MST --- (In reply to comment #14 from Stanislav Brabec)
Confirming that stopping of avahi re-enables DNS queries for .local?
Yes, stopping avahi causes mdns4_minimal to return an error different from NOTFOUND ie nsswitch will try the next module with is dns.
But I guess it is not as flexible as nssswitch.conf: Several packages complain, if avahi is not running. For example use of DNS-SD inside DNS .local domain will not be possible (e. g. use of DAAP inside AD)?
Ah, ok. If you want to keep DNS-SD and only disable name resolving then disabling/uninstalling nss_mdns is the way to go of course.
I am thinking about sysconfig, that will allow smart configuration:
MDNS_LOCAL=(exclusive|preferred|world) default: currently "exclusive", but "preferred" may be an option
MDNS_WORLD=(exclusive|preferred|fallback|none) default=currently "none", but better may be "fallback"
MDNS_IPv4=(none|local|world|both) default: both
MDNS_IPv6=(none|local|world|both) default: none
You'd need SuSEconfig to actually apply such settings then. A YaST module for avahi would be smarter. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=446017 User pbaudis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=446017#c16 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |sbrabec@novell.com --- Comment #16 from Petr Baudis <pbaudis@novell.com> 2008-12-10 20:04:32 MST --- Anything more from my side to do? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com