Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
hmm, that's really weird. Are you running 6.0.1 stock or CM13? I'm currently using CM13, and it worked without netId when I last tried it (in January). Looking at the source code for 6.0.0, the second argument (the one just after setnetdns) is passed to stringToNetId, but I'm not familiar enough with the Android source code and C++ to tell what it does precisely.
Ah, that's too bad. I guess they changed the code some time after Lollipop so you don't need to know the netId anymore, only the devname. Not completely sure, but I think dnsdomain is the search domain. For example if you have it set to "lan" and you type "my-home-pc", the system will try to resolve "my-home-pc.lan".
Yeah, it's still a work in progress in my opinion. Did you have issues with it? It seems to work mostly fine on my device, although a lot of modules are still incompatible.