Example: With the following line in /etc/resolv.conf, libc tries to resolv myhost.somedomain.ch.by if the DNS server is not available during the try on myhost.somedomain.ch. It even succeeds, since ch.by resolves everything with this suffix.. search somedomain.ch # Generated by udhcpc eth0 Best regards Markus
Problem is in res_init.c (247 ff.): while (fgets_unlocked(buf, sizeof(buf), fp) != NULL) { /* skip comments */ if (*buf == ';' || *buf == '#') continue;
/etc/resolv.conf only allows complete comment lines but not mixing of options and comments.
Fix the program which generates these incorrect lines. Even if I'd change that this would still create problems elsewhere because ever since the firs appearance of this code comments aren't supported like this.
(In reply to comment #3) > Fix the program which generates these incorrect lines. > > Even if I'd change that this would still create problems elsewhere because ever > since the firs appearance of this code comments aren't supported like this. No problem. I was just confused by an OpenBSD manpage http://resin.csoft.net/cgi-bin/man.cgi?section=5&topic=resolv.conf where comments beginning in the middle of a line are allowed.