[jboss-jira] [JBoss JIRA] (JGRP-2295) Add local Operation System DNS resolver implementation

Rob Cernich (JIRA) issues at jboss.org
Thu Sep 20 14:56:00 EDT 2018


    [ https://issues.jboss.org/browse/JGRP-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13636500#comment-13636500 ] 

Rob Cernich commented on JGRP-2295:
-----------------------------------

Full classname?

How about having a simple switch for using SRV or A  recoreds, where the A impl uses the unadulterated query with InetAddress.getAllByName() and SRV impl uses DnsContext and the suffix?  This probably makes the most sense, because you need to use SRV if you've got a normal service (although you can use _endpoints prefix on the query) and A if you've got a headless service (clusterIP=None).  WDYT?

> Add local Operation System DNS resolver implementation
> ------------------------------------------------------
>
>                 Key: JGRP-2295
>                 URL: https://issues.jboss.org/browse/JGRP-2295
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Sebastian Łaskawiec
>            Assignee: Sebastian Łaskawiec
>
> The {{DefaultDNSResolver}} queries the DNS server and extracts values it returned. There's however another approach - query the local OS DNS resolver. This approach has some advantages because it takes both {{/etc/hosts}} as well as {{/etc/resolv.conf}} files under consideration. We should provide an {{OSDNSResolver}} implementation that would do it.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list