Maintained by: NLnet Labs

[Unbound-users] libunbound and hosts files

Wouter Wijngaards
Fri May 16 13:43:54 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi John,

John Dickinson wrote:
| I have been playing with libunbound (0.11). It works great :)

Thanks!

| I found that my hosts file (OS X 10.5.2) contains entries like
|
| fe80::1%lo0    localhost
|
| which ub_ctx_hosts doesn't like. You get (presumably from line 896 of
| libunbound.c)
|
| error reading hosts: syntax error. errno says: Invalid argument
|
| Also, It made me wonder if in general ub_ctx_hosts should just skip
| lines it can not read and continue trying to parse the rest of the hosts
| file.

Fixed in svn trunk version, it skips lines with % in the address.

Best regards,
~   Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFILXN6kDLqNwOhpPgRArozAJ9jJajZqYqzebZeRUL4RvxXPv4m0ACeIrr/
ZhqoB7YS2u+lIFNykHqWThU=
=y/cR
-----END PGP SIGNATURE-----