[ldns-users] ldns_resolver_new_frm_fp_l() comment lines bug
Zbynek Michl
zbynek.michl at nic.cz
Thu Mar 18 13:39:27 UTC 2010
Hi,
there is probably a bug in ldns_resolver_new_frm_fp_l() function. When I use
ldns_resolver_new_frm_file() to read /etc/resolv.conf, it incorrectly handles
comment lines.
Example:
nameserver 127.0.0.1
nameserver 172.20.20.40
-> reads both resolvers (OK)
nameserver 127.0.0.1
#nameserver 172.20.20.40
-> reads first resolver (OK)
#nameserver 127.0.0.1
nameserver 172.20.20.40
-> reads no resolver (error)
#nameserver 127.0.0.1
domain mydomain.cz
nameserver 172.20.20.40
-> reads second resolver, but domain is omitted (error)
So it seems if some line is commented out, then the next line is ommited too.
Regards,
Zbynek
More information about the ldns-users
mailing list