Package com.netflix.discovery.shared.dns
Class DnsServiceImpl
- java.lang.Object
-
- com.netflix.discovery.shared.dns.DnsServiceImpl
-
- All Implemented Interfaces:
DnsService
public class DnsServiceImpl extends java.lang.Object implements DnsService
-
-
Constructor Summary
Constructors Constructor Description DnsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>resolveARecord(java.lang.String rootDomainName)Resolve A-record entry for a given domain name.java.lang.StringresolveIp(java.lang.String hostName)Resolve host name to the bottom A-Record or the latest available CNAME
-
-
-
Method Detail
-
resolveIp
public java.lang.String resolveIp(java.lang.String hostName)
Description copied from interface:DnsServiceResolve host name to the bottom A-Record or the latest available CNAME- Specified by:
resolveIpin interfaceDnsService- Returns:
- IP address
-
resolveARecord
@Nullable public java.util.List<java.lang.String> resolveARecord(java.lang.String rootDomainName)
Description copied from interface:DnsServiceResolve A-record entry for a given domain name.- Specified by:
resolveARecordin interfaceDnsService
-
-