> -- 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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/959037

Title:
  NM-controlled dnsmasq prevents other DNS servers from starting

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to