[Unbound-users] libunbound and hosts files

John Dickinson jad at jadickinson.co.uk
Fri May 16 10:31:05 UTC 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







More information about the Unbound-users mailing list