DNS
Generated on 5 May 2026
Each Droplet's network configuration contains the IP addresses of DNS resolvers that the Droplet uses to locate and connect to hostnames on the internet.
Base URL
http://169.254.169.254
GET Get DNS Attributes Index
/metadata/v1/dns
An index of DNS attributes.
Request: /metadata/v1/dns
curl -X GET \
"http://169.254.169.254/metadata/v1/dns"Responses
200
Success
Response
nameserversGET Get DNS Nameservers
/metadata/v1/dns/nameservers
The nameserver entries that are added to a Droplet's /etc/resolv.conf file during creation.
Request: /metadata/v1/dns/nameservers
curl -X GET \
"http://169.254.169.254/metadata/v1/dns/nameservers"Responses
200
Success
Response
2001:4860:4860::8844
2001:4860:4860::8888
8.8.8.8