Hi Antoine,
if_nametoindex() is part of the C standard library, not libdns_sd, so
I don't think it belongs in pybonjour. Someone submitted a patch to
have it added to Python's socket module, but it hasn't been accepted
yet:
http://bugs.python.org/issue1746656
At the moment, you can make it available in your own code using ctypes.
Cheers,
Chris