Package io.fathom.cloud.dns.DnsService

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


        List<DnsRecordSpec> ipv4 = Lists.newArrayList();
        List<DnsRecordSpec> ipv6 = Lists.newArrayList();
        for (LbaasServerData server : repository.getServers(project).list()) {
            String ip = server.getIp();

            DnsRecordSpec record = new DnsRecordSpec();
            record.address = ip;

            InetAddress address = InetAddresses.forString(ip);
            if (address instanceof Inet6Address) {
                ipv6.add(record);
View Full Code Here


            DnsRecordsetSpec recordset = new DnsRecordsetSpec();
            recordset.fqdn = fqdn;

            recordset.records = Lists.newArrayList();

            DnsRecordSpec record = new DnsRecordSpec();
            record.address = InetAddresses.toAddrString(ip);
            recordset.records.add(record);

            String type = (ip instanceof Inet6Address ? DnsService.TYPE_AAAA : DnsService.TYPE_A);
            recordset.type = type;
View Full Code Here

TOP

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

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.