How to get DNS server IP(s) from hostName in java -


situation: trying dns servers entries/details each system. each system can have different dns ips.

ques: how get/fetch dns server ip(s) hostname in java ?

i did this:linkedlist<string> nameservers = (linkedlist<string>) sun.net.dns.resolverconfiguration.open().nameservers(); , able dns details of localsystem - want details of other systems aswell.

any suggestion ?


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -