Package io.fathom.cloud.dns.DnsService

Examples of io.fathom.cloud.dns.DnsService.DnsRecordsetSpec


        }

        List<DnsRecordsetSpec> dnsRecordsets = Lists.newArrayList();
        for (String host : hosts) {
            if (!ipv4.isEmpty()) {
                DnsRecordsetSpec dnsRecord = new DnsRecordsetSpec();
                dnsRecord.fqdn = host;
                dnsRecord.type = "A";
                dnsRecord.records = Lists.newArrayList(ipv4);

                dnsRecordsets.add(dnsRecord);
            }

            if (!ipv6.isEmpty()) {
                DnsRecordsetSpec dnsRecord = new DnsRecordsetSpec();
                dnsRecord.fqdn = host;
                dnsRecord.type = "AAAA";
                dnsRecord.records = Lists.newArrayList(ipv6);

                dnsRecordsets.add(dnsRecord);
View Full Code Here


        }
    }

    private void addDnsHost(InstanceData instance, String fqdn) {
        for (InetAddress ip : publicIps) {
            DnsRecordsetSpec recordset = new DnsRecordsetSpec();
            recordset.fqdn = fqdn;

            recordset.records = Lists.newArrayList();

            DnsRecordSpec record = new DnsRecordSpec();
View Full Code Here

TOP

Related Classes of io.fathom.cloud.dns.DnsService.DnsRecordsetSpec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.