> -- Solvable by moving nm-dnsmasq to another port:
http://sourceware.org/bugzilla/show_bug.cgi?id=14242

BTW, the required enhancement to glibc shouldn't be difficult to
implement.  I expect that all we'd have to do is change the following
code (around line 313 in resolv/res_init.c) so that it could read a port
numeral and save that, instead of NAMESERVER_PORT, in sin_port.

if ((fp = fopen(_PATH_RESCONF, "rce")) != NULL) {
[...]
    while (fgets_unlocked(buf, sizeof(buf), fp) != NULL) {
        [...]
        if (MATCH(buf, "nameserver") && nservall < MAXNS) {
            while (*cp == ' ' || *cp == '\t')
                        cp++;
            if ((*cp != '\0') && (*cp != '\n') && __inet_aton(cp, &a)) {
                statp->nsaddr_list[nservall].sin_addr = a;
                statp->nsaddr_list[nservall].sin_family = AF_INET;
                statp->nsaddr_list[nservall].sin_port = htons(NAMESERVER_PORT);
                nserv++;
            }

There's one more snippet after this dealing with the IPv6 case.  That
should be it.  Any obvious problems I'm overlooking?

-- 
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:
  NM-controlled dnsmasq prevents other DNS servers from starting

Status in “djbdns” package in Ubuntu:
  New
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/djbdns/+bug/959037/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to