[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-06-06 Thread Alkis Georgopoulos
** Summary changed:

- Standalone dnsmasq is not compatible out of the box with NM+dnsmasq
+ Don't start local resolver if a DNS server is installed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  Confirmed
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-06-06 Thread Alkis Georgopoulos
@jdthood: the Standalone dnsmasq is not compatible out of the box with
NM+dnsmasq title hints that the problem is caused by the dnsmasq
package, i.e. that it should be crippled and not listen on lo by
default in order to coexist with the local resolver implementation.

I don't think this is the case, I don't think the dnsmasq package does
anything wrong; I just cross-linked the bug report in case other people
hit the problem and try to find it in the dnsmasq bug page.

The problem should be fixed from the network-manager side.

Otherwise, similar bug reports should be filed against all other DNS
server packages, not just dnsmasq. But I really think that people do
want their DNS servers to listen on lo by default. They wouldn't want
to break that just to help the local resolver implementation.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  Confirmed
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-06-06 Thread Mathieu Trudel-Lapierre
Listening on lo is fine; and blocking other DNS servers from being
started isn't. I think we're in violent agreement there. The problem is
how to fix this.

I'm not saying dnsmasq should be crippled, but that it should special-
case lo and not just listen on 0.0.0.0; because that binds to any
further use of port 53, which might not work with any further processes
that might want to legitimately listen on port 53.

That's pretty much how the solution is shaping to be: when listening on
all interfaces, listen on each interfaces separately; binding to the IP
address attached to the interface (or via any other mean). We should
then be able to have dnnsmasq listen on 127.0.1.1:53 to satisfy the need
for a local resolver.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  Confirmed
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-06-06 Thread Thomas Hood
@Alkis: Your title Dont... is not a description of a problem.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  Confirmed
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-26 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: dnsmasq (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  Confirmed
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-26 Thread Bert Voegele
Just as a short reminder, there are more DNS-resolver/server available as 
packages out there than just bind and dnsmasq, i.e. djbdns and it's derivates. 
Until I removed the annoying dns=dnsmasq line in /e/N/Nconf, NM disconnected 
the WLAN after a couple of minutes, throwing an error about dnsmasq not able to 
bind to 127.0.0.1.
I'm  puzzled about the default inclusion of dnsmasq as a local resolver for 
standard users. If a connection is to be shared, it might be useful to bind 
dnsmasq to the shared iface to provide DHCP and DNS, like it's done with 
libvirt-bin.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  Confirmed
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-23 Thread Alkis Georgopoulos
 The configuration itself shipped by default should be patched

If you mean something like:
except-interface=lo
bind-interfaces

...I just tested them and they do allow both dnsmasq instances to run.

But of course those settings won't be acceptable to most dnsmasq users,
as listening on lo is usually desired too (local DNS cache; DHCP/TFTP
for VMs etc). So I don't think that crippling the default dnsmasq
functionality is a good way to solve this problem. DNS clients shouldn't
hook port 53; it's reserved for DNS servers.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  New
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-20 Thread Mathieu Trudel-Lapierre
That wouldn't be the right process though. The configuration itself
shipped by default should be patched, that can be done with a simple
patch to the dnsmasq package.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  New
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-13 Thread Alkis Georgopoulos
** Also affects: dnsmasq (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  New
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-13 Thread Alkis Georgopoulos
Since this won't be fixed for Precise from the network-manager side, the 
dnsmasq package now is broken by default in desktop installations.
So I've added the dnsmasq package in the Affects: list, to make it easier for 
people to locate the cause of the problem so that fewer duplicate bug reports 
are filed (it's an LTS release, I suppose many people will be bitten by it in 
the next 5 years).

Also, even though it's not the correct place to solve the problem, the
dnsmasq.postinst could be temporarily modified to disable the local
resolver. I can propose a patch for it if the maintainer is interested.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “dnsmasq” package in Ubuntu:
  New
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-11 Thread Mathieu Trudel-Lapierre
You need to restart network-manager after changing the configuration
value.

It's unfortunate that the configuration needs to be changed, but it's
needed. I sympathize with your use case, but there is sufficient benefit
in using NM together with dnsmasq and resolvconf to solve other DNS
resolution issues to inconvenience those who use dnsmasq separately as a
standalone daemon (to have to change the config to suit their needs).

We won't be fixing this for Precise, but I've started discussion with
dnsmasq upstream to possibly deal differently with the binding and allow
running instances on other IP addresses (such as 127.0.1.1 or so). It's
still going to need sufficient amounts of work to fix dnsmasq's method
of binding to interfaces and how NM starts and interfaces with dnsmasq
(though I already have patches for NM, but they're useless without the
fixes in dnsmasq). At this point though, the simplest way to deal with
this remains to edit interfaces= to map to the relevant external
interfaces (eth0, wlan0, etc.) and let the NM-spawned instance get
started on lo.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-11 Thread Alkis Georgopoulos
 At this point though, the simplest way to deal with this remains to
edit interfaces= to map to the relevant external interfaces (eth0,
wlan0, etc.) and let the NM-spawned instance get started on lo.

We can't do that; we need DNS caching for thin client sessions which run
on the server with DNS=127.0.0.1. We need to completely disable the nm
dnsmasq spawning.

 You need to restart network-manager after changing the configuration
value.

Thank you, I think that's too much to do from a postinst so I'll
probably document it as part of the installation process.


For the record, I think that the proper way to solve the problem is from libc 
itself. Ask Simon to allow calling dnsmasq like a library, or communicate with 
it via a socket, whatever's needed, but no :53 port hooking, this is reserved 
for real DNS servers, not for helpers for libc shortcomings.

Thanks again for all the feedback,
Alkis

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-09 Thread Alkis Georgopoulos
Mathieu, some help please?

After my ltsp-pnp package comments out dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf, it runs
invoke-rc.d dnsmasq restart from its postinst,
but that fails as the nm-spawned dnsmasq instance is still listening on port 53.

And if I kill it before starting the normal dnsmasq, that leaves the DNS
configuration broken...

How can I tell resolv.conf and network-manager to reload their configurations?
Is it necessary to restart the network-manager service? And if it is, is that 
enough? I'd hate to have to tell the users that they need to restart their 
servers... :(

Thanks!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-05 Thread Marco Menardi
I run ltsp also, and even if I remove NM completely, I think that Alkis's setup 
is interesting and would love to be able to use it also in the near future, so 
this breakage will affect me too.
As general consideration I find scaring that installing a package can bring 
such problems just because we think that usually is not used often. I really 
want GNU/Linux keep being an predictable system and apt packaging a very good 
one, so please consider to fix this issue before release.
Thanks in advance

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-05 Thread Asmo Koskinen
Me, too. Fix this one.  '#dns=dnsmasq' is ugly hack, not for real
humans, who run ltsp server at school.

Here is my bug report:

https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/955785

Best Regards Asmo Koskinen.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-05 Thread Mathieu Trudel-Lapierre
Please read the whole thread and see the various other workarounds
provided; granted the default shipped configuration for dnsmasq doesn't
play well with NetworkManager, but it's easy to adjust to your
particular needs and workaround this issue; which also only happens if
the system acting as a server locally runs both dnsmasq and
NetworkManager.

We've clearly identified that having dnsmasq bind to particular
interfaces is an easy way to work around this and is a very good idea
anyway. Please make sure your dnsmasq configuration sets interface= to
the interface on which it should listen, and possibly also uncomment
bind-interfaces in /etc/dnsmasq.conf. At that point the changes to
/etc/NetworkManager/NetworkManager.conf won't be required.

This isn't just a simple fix for this; the default shipped configuration
for dnsmasq is just as guilty as network-manager for assuming it
should bind on all addresses and all interfaces.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-04-05 Thread Alkis Georgopoulos
 This isn't just a simple fix for this; the default shipped
configuration for dnsmasq is just as guilty as network-manager for
assuming it should bind on all addresses and all interfaces.

I disagree; most system services bind to all addresses and interfaces by
default (sshd, cupsd, bind, dnsmasq, dhcp, tftp, nbd, inetd, rpc...).
And I do want DNS services for my thin client sessions running on the
server, so I do want dnsmasq listening in all addresses.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-21 Thread Alkis Georgopoulos
Hi Mathieu,

 If you're installing dnsmasq on top of the standard desktop install, why is 
 it such an issue to edit the NetworkManager configuration to cater it to your 
 needs?
 except-interface=lo may be a good idea here to avoid listening on the 
 loopback interface

It's not about me; it's that the default dnsmasq/bind installations are now 
broken on desktop installations.
For the needs of our schools here in every LTS release we're making 
repositories with custom packages for automated installation + configuration, 
so the nm configuration editing is just a sed away, much less trouble than even 
reporting the bug in the first place.


 Wouldn't it make sense it this case to go further steps and make sure the 
 network connection is setup in /etc/network/interfaces rather than NM, to 
 ensure you don't suddenly get a different IP address from DHCP?

No, network manager supports static IPs (even though we don't always
need them even on LTSP servers) and doing it without
/etc/network/interfaces allows teachers to see the network status from
the nm applet.


 and setting up a special upstart job to spawn a local resolver won't work (NM 
 spawns it itself, using a custom configuration on purpose).

Right, that's why I'm saying that the local resolver implementation is
immature, it doesn't integrate with the rest of the distro, but it
breaks other packages by launching a DNS server from hardcoded C code
instead of a regular sysvinit/upstart script like all the other daemons.


 I guess a workable solution would be to check for /etc/default/dnsmasq and 
 not spawn dnsmasq if the value of ENABLED is 1.

That would indeed be workable, please do implement it.


 listen-address probably shouldn't contain 127.0.0.1 if dnsmasq is meant to be 
 used to resolve things for ltsp clients

Thin client sessions run on the server, and would be resolved from the 
nm-spawned dnsmasq instance without caching, while LTSP fat client sessions 
would be resolved from the normal dnsmasq instance with caching.
Having one DNS server for half of the clients and another for the other half is 
bound to cause confusion and problems.


Anyway, I think I've made my point, if it's too difficult to do for Precise 
just postpone it until the next release. To workaround the problem for Greek 
schools I'll make an ltsp-server-dnsmasq package and sed the nm configuration 
in its postinst.

Cheers,
Alkis

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-21 Thread Mathieu Trudel-Lapierre
The parsing of /etc/default/dnsmasq won't fly.

Please, do post your dnsmasq configuration so we can try to figure out
the right way to integrate this with the current setup.

As for the set of resolvers on the network, that's not exactly the
plan: all systems used to have the libc resolver. Now any system that
runs NetworkManager will also be running a local dnsmasq instance since
that handles a bunch of issues (more than three servers, split DNS,
broken IPv6 DNS, etc) far better than libc. Then they can easily speak
to a network DNS server if necessary or resolve directly to the
internet.

I don't understand how your systems are setup, and I think that's where
the confusion come from. What I'm expecting is that the LTSP server also
runs a dnsmasq daemon to provide resolving to all the LTSP clients; with
none of the clients running dnsmasq locally. Isn't that the case?

I do think there are simpler ways to fix this than doing a sed of the nm
configuration.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-21 Thread Alkis Georgopoulos
 Please, do post your dnsmasq configuration so we can try to figure out
the right way to integrate this with the current setup.

Just assume the default dnsmasq configuration, any other settings we have there 
are completely unrelated to this problem.
When one installs dnsmasq, it's supposed to start listening on 0.0.0.0:53, 
without manually editing any configuration files at all, i.e. with the stock 
/etc/dnsmasq.conf.
Now with the local resolver listening on 127.0.0.1:53, dnsmasq complains that 
the port is in use and fails to start.

 Now any system that runs NetworkManager will also be running a local
dnsmasq

Let's step back a bit and talk about that. You're launching a DNS server 
without using a sysvinit or upstart job. So you're bypassing update-rc.d, 
policy-rc.d, upstart .override files, package Conflicts:, Provides: etc, all 
the standard framework for managing services.
Why wouldn't it be more reasonable to start the local resolver service normally 
like all the other daemons?
Even make a package out of it, and declare that it Conflicts: bind9, dnsmasq, 
so that people installing those automatically get rid of the local resolver and 
its conflicting configuration?
If you assume that network-manager contains a hardcoded DNS server, then the 
network-manager package itself should conflict with other DNS servers... But 
that shouldn't be the case, people should be allowed to install any DNS  server 
they want alongside network-manager, and that could be done seamlessly and 
without editing any configuration files at all if:
network-manager recommented the local-resolver package,
and the local-resolver package conflicted with the other dns server packages.

Then, when I install dnsmasq over the desktop installation, the local-
resolver package would be automatically uninstalled, and I wouldn't have
to edit any configuration file at all to resolve the conflict, it would
be resolved by the package manager.

 I don't understand how your systems are setup, and I think that's
where the confusion come from. What I'm expecting is that the LTSP
server also runs a dnsmasq daemon to provide resolving to all the LTSP
clients; with none of the clients running dnsmasq locally.

The problem isn't LTSP specific, it applies to anyone that wants to use dnsmasq 
as a DNS server for his local network.
But yes, for LTSP labs that use dnsmasq, it is exactly as you described it. 
Now, LTSP clients are all diskless and netbooted, but of two kinds: thin and 
fat clients. Imagine thin clients like XDMCP clients, i.e. many users working 
remotely on the same server. So those would be using the local resolver, and 
miss the caching feature and the speed up that it offers.
Imagine fat clients like regular machines that have nameserver=the LTSP server 
in their resolv.conf. In the solution you proposed above, those would be using 
the real dnsmasq instance, with caching and everything.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-21 Thread Mathieu Trudel-Lapierre
Then at this point the issue is that dnsmasq is shipped with a default
configuration that while it's technically correct; binds on all
interfaces and should normally be modified by the admin to suit the
needs of their network. That configuration will break with NM making use
of dnsmasq-base as a local resolver; and most likely also bombs with
qemu/kvm virtual machines.

I want to make this easy for people in your situation, but having a
system-wide instance isn't going to work. Not only is it way too complex
for what we're trying to achieve (let alone confusing to users to see
packages get removed by metapackages), but you always risk that someone
modifying the system-wide config meant for use with NetworkManager then
causes totally unwanted behavior when NetworkManager tries to add
nameservers to the configuration. That's without counting that this
still doesn't fix the issue of resolving for virtual machines, which
you'll almost certainly want to resolve separately from anything else
(and to think of it, installing virt-manager and virtual machine on your
setup probably breaks just as bad as NM).

I've been trying hard to offer solutions and I've proposed configuration
changes to the shipped config which cover the issue nicely for your
case. If you don't want to apply these changes, that's fine; you're
obviously free to implement a fix however you see fit :)

For precise +1 there may be a way to move dnsmasq initialization in NM
to use 127.0.1.1, and allow this in dnsmasq with upstream's help, but
that's not even going to solve this particular issue.

Reducing the priority since we won't look at this until Precise+1 and
there aren't many reports about such issues.

** Changed in: network-manager (Ubuntu)
   Importance: Medium = Low

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-20 Thread Alkis Georgopoulos
 Please, tell me more about your setup so we can make sure we cater for
this use case before release.

1) Install precise-desktop-i386.iso to some-pc.
2) Install dnsmasq. Fails to start. OK, annoying but let's see if the problem 
goes away after reboot.
3) Reboot. Try to `dig @some-pc ubuntu.com` from *another* PC.

Here's the problem. It *sometimes* works. The caching resolver implementation 
introduced a race condition.
So if the nm-spawned dnsmasq starts first, then the dnsmasq package is broken, 
and doesn't fulfill its stated goal to provide DNS to a small network out of 
the box and without manual editing of nm conffiles.
If the real dnsmasq starts first, then the caching resolver is broken instead.

Because of time constrains, I think that checking if [ -d /etc/dnsmasq.d ] 
before spawning dnsmasq from nm, would satisfy most of dnsmasq users. I don't 
think there are many users that want to keep the nm-spawned dnsmasq when they 
install the real one. Maybe something similar can be done for bind too.
In the future, maybe the caching resolver implementation can start using 
/etc/dnsmasq.d itself, along with the KVM-spawned instances too, so that people 
only have one dnsmasq instance instead of multiple ones?


(The reason we're using the desktop iso instead of the server one, is that we 
need a desktop environment in our servers for our LTSP thin clients, and 
because teachers work on our servers, they're not headless).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-20 Thread Alkis Georgopoulos
Another idea would be to create a spawn-local-resolver sysvinit or
upstart job that lists dnsmasq and bind in its dependencies, so that it
always starts after any known DNS servers, ensuring that no race
conditions occur for the :53 port checking.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-20 Thread Alkis Georgopoulos
And yet another idea would be to make a package out of the local resolver 
configuration, and declare that it Breaks: dnsmasq, bind9.
That way anyone installing dnsmasq or bind9 would get rid of the local resolver 
package and its conflicting configuration.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-20 Thread Mathieu Trudel-Lapierre
If you're installing dnsmasq on top of the standard desktop install, why
is it such an issue to edit the NetworkManager configuration to cater it
to your needs? Wouldn't it make sense it this case to go further steps
and make sure the network connection is setup in /etc/network/interfaces
rather than NM, to ensure you don't suddenly get a different IP address
from DHCP?

I don't think adding complexity by creating new virtual packages for
configurations is a sensible thing to do; and setting up a special
upstart job to spawn a local resolver won't work (NM spawns it itself,
using a custom configuration on purpose).

Since NM relies on dnsmasq-base for the standalone binary rather than
the 'dnsmasq' package itself; I guess a workable solution would be to
check for /etc/default/dnsmasq and not spawn dnsmasq if the value of
ENABLED is 1. Working on top of that for later releases we might then be
able to try speaking to a running instance via DBus in such cases to
pass server changes to it.

Setting to Triaged; we've got a way to possibly deal with this use
case...

** Changed in: network-manager (Ubuntu)
   Importance: Low = Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-20 Thread Mathieu Trudel-Lapierre
Does it help any if the daemon dnsmasq is configured to only listen on
the interface meant for the ltsp clients, if there's a specific
interface for this?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-20 Thread Mathieu Trudel-Lapierre
There's other probably far simpler (and safer) workarounds. What's your
configuration for the dnsmasq like?

Upstream mentions some configurations at the dnsmasq level that are very
relevant for this particular case:

in /etc/dnsmasq.conf:

#except-interface=
# Or which to listen on by address (remember to include 127.0.0.1 if
# you use this.)
#listen-address=

The problem is that listen-address probably shouldn't contain 127.0.0.1
if dnsmasq is meant to be used to resolve things for ltsp clients; also,
except-interface=lo may be a good idea here to avoid listening on the
loopback interface. That way both instances should start fine.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-19 Thread Mathieu Trudel-Lapierre
Well, that's already partly done. dnsmasq will fail to start with bind
is running, as it should; based on port 53 already being in use or not.

As another option, you may also wish to switch dns=dnsmasq to dns=bind
to use bind directly as a resolver. There are other reasons to have
dnsmasq and/or bind installed, so even checking for existence isn't the
right way to cover this.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  New

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-19 Thread Mathieu Trudel-Lapierre
I don't think we'll cover this particular use case for Precise. I
understand your requirement and how the need to change the settings in
/etc/NetworkManager/NetworkManager.conf isn't great, but it's a one-time
thing and isn't something we can safely do as part of the install
processes for dnsmasq or bind. Then, for the reasons above other options
aren't available.

There's another possibility to make this easier by making sure Bind
always starts before NetworkManager, but most cases will not actually
see bind and NetworkManager installed on the same system; and fixing
this would require migrating bind from a sysvinit script to a new
upstart job.

I'm keeping the task open as it's absolutely a valid request, we just
won't have time to focus on fixing this for the Precise release. (Sorry)

** Changed in: network-manager (Ubuntu)
   Status: New = Triaged

** Changed in: network-manager (Ubuntu)
   Importance: Undecided = Low

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-19 Thread Alkis Georgopoulos
 I don't think we'll cover this particular use case for Precise.

Excuse me, but how is installing bind9 or dnsmasq a particular use case?
I'm talking about the default installation, not some corner case...

 most cases will not actually see bind and NetworkManager installed on
the same system

We have 250 schools here that use NetworkManager and dnsmasq as the DNS server, 
are there any stats that show that this is actually rare?
And, actually more rare than the split VPN need that the local resolver 
addresses?


Since the local resolver implementation seems a bit immature and needs to break 
two packages in order to work, one of them in main, wouldn't it be better if it 
was postponed and not be applied in an LTS release until it's more cooperative?


Kind regards,
Alkis Georgopoulos

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-19 Thread Mathieu Trudel-Lapierre
What I mean here is that default installs normally don't involve
installing a local DNS server, except perhaps as a caching resolver. The
caching resolver use case is covered by spawning dnsmasq from
NetworkManager; the local DNS server isn't. We do think that there is
relatively few such installs of a server that depends on NetworkManager
running; and that's definitely not the default setup for Ubuntu Server
(where NetworkManager isn't installed by default).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 959037] Re: Don't start local resolver if a DNS server is installed

2012-03-19 Thread Mathieu Trudel-Lapierre
I think I've been unclear. Using NetworkManager with *bind* is a
relatively unusual use case. dnsmasq with NetworkManager for resolution
is what we're aiming for *by default*, and that's what also part of the
default install. Everything has been put in place so that split VPN and
such are correctly addressed with NetworkManager spawning dnsmasq as
necessary, which is what dns=dnsmasq achieves.

I'm not sure in this case what you mean by breaks two packages. There's
a lot of benefits to having a local resolver other than the libc one
(split DNS, faster and more efficient resolution, etc.).

I do feel we've tested this well, thoroughly, and that it's very
cooperative and efficient. Please, tell me more about your setup so we
can make sure we cater for this use case before release.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  Don't start local resolver if a DNS server is installed

Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  As described in
  https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-
  resolving, network manager now starts a dnsmasq instance for local DNS
  resolving.

  That breaks the default bind9 and dnsmasq installations, for people that 
actually want to install a DNS server.
  Having to manually comment out #dns=dnsmasq in 
/etc/NetworkManager/NetworkManager.conf doesn't sound good, and if it stays 
that way, it should be moved to the bind9 and dnsmasq postinst scripts.

  Please make network-manager smarter so that it checks if bind9 or
  dnsmasq are installed, so that it doesn't start the local resolver in
  that case.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp