There is a bug in Android in using a simple domain name ej: myservice.local etc
In PCs you can use nslookup and you get the full domain name such as company.domain.com Then this domain can be used to create a socket in the android app.
If I look in /etc/resolv.conf in my PC there is a list of domain names So if I manually add them in code and try them one by one and see which one works:
protected static final String [] DNSSS = new String[] {
"bla.bla.net",
"aaa.bbb.net",
"comp.com",
"ddd.cccc.net",
"comp.net"
};
So my question is now: how can I do something that could work in a more general way? Of course I can add user settings where they could add their dns servers one by one but what are the other options? How could I solve this problem and somehow get this list of servers from local network but in android?