class Bosh::Director::DnsManager

Public Instance Methods

configure_nameserver() click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 22
def configure_nameserver ; end
delete_dns_for_instance(instance_model) click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 24
def delete_dns_for_instance(instance_model) ; end
dns_record_name(hostname, job_name, network_name, deployment_name) click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 26
def dns_record_name(hostname, job_name, network_name, deployment_name) ; end
dns_servers(network, dns_spec, add_default_dns = true) click to toggle source

build a list of dns servers to use

# File lib/bosh/director/dns/dns_manager.rb, line 29
def dns_servers(network, dns_spec, add_default_dns = true)
  servers = nil

  if dns_spec
    servers = []
    dns_spec.each do |dns|
      dns = NetAddr::CIDR.create(dns)
      unless dns.size == 1
        raise NetworkInvalidDns,
          "Invalid DNS for network '#{network}': must be a single IP"
      end

      servers << dns.ip
    end
  end

  return servers unless add_default_dns
  add_default_dns_server(servers)
end
find_dns_record(dns_record_name, ip_address) click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 49
def find_dns_record(dns_record_name, ip_address) ; end
find_dns_record_names_by_instance(instance_model) click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 51
def find_dns_record_names_by_instance(instance_model) ; end
flush_dns_cache() click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 53
def flush_dns_cache ; end
migrate_legacy_records(instance_model) click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 55
def migrate_legacy_records(instance_model) ; end
update_dns_record_for_instance(instance_model, dns_names_to_ip) click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 57
def update_dns_record_for_instance(instance_model, dns_names_to_ip) ; end

Private Instance Methods

add_default_dns_server(servers) click to toggle source
# File lib/bosh/director/dns/dns_manager.rb, line 61
def add_default_dns_server(servers)
  servers
end