mdnsd: add query / fetch methods, fix some bugs