Skip to content

Commit fe8af41

Browse files
committed
feat(vps): dns more info
1 parent 9f83f16 commit fe8af41

File tree

1 file changed

+24
-20
lines changed
  • network/vpc/reference-content

1 file changed

+24
-20
lines changed
Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
meta:
3-
title: Understanding internal DNS
3+
title: Understanding Scaleway DNS
44
description: Learn more about how internal DNS works within the Scaleway ecosystem, and how to ensure your infrastructure is using DNS efficiently.
55
content:
6-
h1: Understanding internal DNS
6+
h1: Understanding Scaleway DNS
77
paragraph: Learn more about how internal DNS works within the Scaleway ecosystem, and how to ensure your infrastructure is using DNS efficiently.
88
tags: vpc private-network dns dns-server dns-resolution hostname
99
dates:
@@ -21,36 +21,49 @@ The **D**omain **N**ame **S**ystem (DNS) is a naming system for devices connecte
2121

2222
## Scaleway DNS overview
2323

24-
Scaleway Private Networks benefit from managed internal DNS. This allows the resolution of resources' **hostnames** on the Private Network, into their private IP addresses. This managed DNS service is automatically exposed in each Private Network and no user-configuration is required.
24+
Scaleway Private Networks benefit from managed internal DNS. This allows the resolution of resources' **hostnames** on the Private Network, into their private IP addresses. This managed DNS service is automatically exposed in each Private Network and no user configuration is required.
2525

2626
<Message type="note">
2727
When a Private Network is attached to a [legacy Public Gateway](/network/public-gateways/concepts/#ipam), the gateway’s DNS takes priority over that of the Private Network.
28-
<Message>
28+
</Message>
2929

3030
## Hostname format
3131

32-
A resource's hostname is equivalent to the name you gave the resource when creating it. For example, if you have an Instance with the name `instance123` attached to a Private Network named `prodpn`, its address on that network is `instance123.prodpn.internal`.
32+
A resource's hostname is equivalent to the name you gave the resource when creating it. The full format for internal addressing is `<hostname>.<private-network-name>.internal`. For example, if you have an Instance with the name `instance123` attached to a Private Network named `prodpn`, its address on that network is `instance123.prodpn.internal`.
3333

3434
<Message type="tip">
3535
- If you update the resource's name after creating it, and thus its hostname changes, it will not be automatically updated on our DNS records unless you detach and reattach the resource to the Private Network. <br/><br/>
3636
- If you created the resource via the API, and it has dots in its name, these dots should be replaced by dashes for the purposes of DNS resolution (`my.instance` --> `my-instance`). We generally recommend avoiding using dots in your resource names to avoid issues.<br/><br/>
37-
- You can also reach a resource via its resource ID, e.g. `e49902a6-ed4c-431f-bd62-0fc41063eec0.prodpn.internal`
38-
37+
- You can also reach a resource via its resource ID, e.g. `e49902a6-ed4c-431f-bd62-0fc41063eec0.prodpn.internal` - see below for full details.
3938
</Message>
4039

4140
## DNS resolution details
4241

43-
The managed DNS service is exposed on each Private Network through the following IP addresses:
42+
The managed DNS resolver service is exposed on each Private Network through the following IP addresses:
4443

4544
- IPv4: `169.254.169.254`
4645
- IPv6: `fe80::200:22ff:fe05:ca1e`
4746

48-
The DNS service parses packets' DNS messages, rewriting DNS queries from `<resource_name>.<private_network_name>` to `<resource_name>.<private_network_id>.<vpc_id>` to enable hostname resolution across Private Networks within a VPC.
47+
The service resolves both regular public records, as well as internal VPC records
48+
49+
<Message type="tip">
50+
The `.internal` at the end of internal addresses is important in enabling the resolver to distinguish between internal and external/public DNS. For this reason, you should always add `.internal` when addressing resources within your VPC.
51+
</Message>
52+
53+
The DNS service resolves the following formats:
4954

50-
DNS is then fully resolved via an upstream DNS resolver cluster.
55+
```
56+
<resource_name>.<private-network_name>.internal
57+
<resource_name>.<private-network_uuid>.internal
58+
<resource_uuid>.<private-network_uuid>.internal
59+
```
5160

5261
Note that DNS cannot resolve or forward queries between different VPCs. It can only resolve hostnames for resources within the same VPC, though they may be on different Private Networks within that VPC.
5362

63+
## Rate limiting
64+
65+
Currently, DNS requests are rate-limited to 50 requests per second per resource. Watch this space as we work to be able to increase this limit to accommodate higher traffic volumes.
66+
5467
## Troubleshooting
5568

5669
If you experience problems with DNS, try the following steps:
@@ -63,13 +76,4 @@ If you experience problems with DNS, try the following steps:
6376

6477
4. **Check whether you are using Network Manager**: DNS does not work out of hte box for Linux distributions using Network Managed, such as **RockyLinux**. Find out how to resolve this problem [in our troubleshooting page](/network/vpc/troubleshooting/private-dns-dhcp-not-working/#distributions-running-network-manager)
6578

66-
If you are still having problems reaching a resource attached to a Private Network via its hostname, [open a support ticket](https://console.scaleway.com/support).
67-
68-
## Anything else?
69-
70-
E.g.
71-
- Any other tips for effective hostnaming
72-
- Any options for manual configuration (configuring custom DNS names or domains within SCW internal DNS?)
73-
- Anything re: InterLink?
74-
- Any best practices to ensure efficient DNS resolution/avoid unnecessary requests?
75-
- Any info as to which resources can access internal DNS/access to DNS query logging?
79+
If you are still having problems reaching a resource attached to a Private Network via its hostname, [open a support ticket](https://console.scaleway.com/support).

0 commit comments

Comments
 (0)