Class: Bosh::Director::DnsManager
- Inherits:
-
Object
- Object
- Bosh::Director::DnsManager
show all
- Defined in:
- lib/bosh/director/dns/dns_manager.rb
Instance Method Summary
collapse
Instance Method Details
22
|
# File 'lib/bosh/director/dns/dns_manager.rb', line 22
def configure_nameserver ; end
|
#delete_dns_for_instance(instance_model) ⇒ Object
24
|
# 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) ⇒ Object
26
|
# 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) ⇒ Object
build a list of dns servers to use
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# 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) ⇒ Object
49
|
# 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) ⇒ Object
51
|
# File 'lib/bosh/director/dns/dns_manager.rb', line 51
def find_dns_record_names_by_instance(instance_model) ; end
|
#flush_dns_cache ⇒ Object
53
|
# File 'lib/bosh/director/dns/dns_manager.rb', line 53
def flush_dns_cache ; end
|
#migrate_legacy_records(instance_model) ⇒ Object
55
|
# 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) ⇒ Object
57
|
# File 'lib/bosh/director/dns/dns_manager.rb', line 57
def update_dns_record_for_instance(instance_model, dns_names_to_ip) ; end
|