docs.spearhead.cloud/en/docs/dns.md

40 lines
2.3 KiB
Markdown
Raw Normal View History

2018-03-05 17:28:21 +02:00
# DNS
2018-07-11 16:45:08 +03:00
> The Container Name Service is *now* enabled for public use.
2018-03-05 17:28:21 +02:00
## Overview
Spearhead Container Name Service (CNS) is a completely automatic, universal DNS for your containers and VMs on Spearhead Cloud. It is tightly integrated with Spearhead Cloud to eliminate complexity and simplify operations.
Spearhead CNS serves address records (both A and AAAA) for containers by instance name and tags. Multiple containers providing the same service can share the same tag and will be returned in the same address record. Because Spearhead CNS knows when containers are started or stopped, including unexpected stops, the DNS information is automatically updated and requests will be sent to running containers.
##
Spearhead CNS offers two facilities:
1. Serving address records for instances by instance name.
2. Serve address records for instances grouped by service label/tag (multiple instances are listed in one DNS name, depending on their availability)
2018-07-26 19:53:53 +03:00
Once activated, running instances in Spearhead Compute Service will be available in DNS using the following FQDN patterns:
2018-03-05 17:28:21 +02:00
2018-08-16 19:00:22 +03:00
```<instance name OR alias>.inst.<account uuid OR login_name>.<data center name>.spearhead.cloud```
```<service name>.svc.<account uuid OR login_name>.<data center name>.spearhead.cloud```
2018-03-05 17:28:21 +02:00
2018-07-26 19:53:53 +03:00
Here is an example output from `spearhead instance get` <name>:
```
"dns_names": [
"11163447-6bc4-4d5f-a168-9981824857c9.inst.41824237-4616-42e3-d189-f9bd0242b4e4.ro-1.on.spearhead.cloud",
"mpana-fab-lan.11163447-6bc4-4d5f-a168-9981824857c9.inst.41824237-4616-42e3-d189-f9bd0242b4e4.ro-1.on.spearhead.cloud",
"11163447-6bc4-4d5f-a168-9981824857c9.inst.mpana.ro-1.on.spearhead.cloud",
"mpana-fab-lan.11163447-6bc4-4d5f-a168-9981824857c9.inst.mpana.ro-1.on.spearhead.cloud",
"cinema.inst.41824237-4616-42e3-d189-f9bd0242b4e4.ro-1.on.spearhead.cloud",
"mpana-fab-lan.cinema.inst.41824237-4616-42e3-d189-f9bd0242b4e4.ro-1.on.spearhead.cloud",
"cinema.inst.mpana.ro-1.on.spearhead.cloud",
"mpana-fab-lan.cinema.inst.mpana.ro-1.on.spearhead.cloud"
]
```
2018-08-16 19:00:22 +03:00
Notice the last two lines which show the IP of the public interface "cinema.inst.mpana.ro-1.on.spearhead.cloud" and the internal interface on my fabric vlan "mpana-fab-lan.cinema.inst.mpana.ro-1.on.spearhead.cloud".
> Last edit: 2018 Thu 16 Aug 19:00 GMT+3