Maintained by: NLnet Labs

[Unbound-users] libunbound and hosts files

John Dickinson
Fri May 16 12:31:05 CEST 2008


Hi,

I have been playing with libunbound (0.11). It works great :)

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.

thanks
John
---
John Dickinson