Red Hat Bugzilla – Bug 32157
an innocent-looking space before 'nameserver' in resolv.conf confuses resolver
Last modified: 2007-04-18 12:32:14 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i686)
I added a space just before the nameserver keyword in /etc/resov.conf.
This resulted in a failure to find a default dns.
Steps to Reproduce:
1. just start a nameserver line with a space
Actual Results: for example, nslookup says the address of the Default
Server is 0.0.0.0
The resolv.conf format does not allow space there, so it was not innocent.
glibc has never allowed spaces there and I don't think it is necessary to
make changes for this. Note that e.g. Solaris does not allow spaces there either.
Ok, so it's not a bug, but it is sure ugly.
P.S. The bug is probably in kppp which made the first space initially. But I
fail to reproduce this one...