[Bug 959037] Re: NM-controlled dnsmasq prevents other DNS servers from starting
Thomas Hood
959037 at bugs.launchpad.net
Fri Jun 15 14:01:44 UTC 2012
> -- 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
Server Team, which is subscribed to dnsmasq in 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
More information about the Ubuntu-server-bugs
mailing list