Consultar servidores DNS NS: ¿quién administra el DNS de un dominio?
¿Agregaste un registro DNS que no hace nada? ¿Cambiaste de proveedor y quieres una prueba de que funcionó? Los servidores de nombres del dominio deciden de quién son los registros que valen. Consúltalos aquí abajo, con la dirección IP de cada uno, y usa la tabla para identificar con qué proveedor estás tratando.
Por qué los servidores de nombres lo deciden todo
Tu registrador guarda qué servidores de nombres están a cargo de tu dominio. Cuando un resolvedor necesita una respuesta, pide esos servidores al registro (registry) de nivel superior del dominio y luego les pregunta directamente a ellos. Lo que publiquen esos servidores es la verdad para tu dominio, sin importar lo que diga cualquier otro panel.
Por eso un registro que agregaste en un panel de control puede parecer que no hace nada: si los servidores de nombres del dominio pertenecen a otro proveedor, editaste una zona que nadie lee.
¿Qué proveedor administra estos servidores de nombres?
Los nombres de host de los servidores de nombres suelen delatar al proveedor.
| El servidor de nombres se parece a | Normalmente significa |
|---|---|
| name.ns.cloudflare.com | Cloudflare DNS |
| ns-123.awsdns-45.com (también .org, .net, .co.uk) | Amazon Route 53 |
| ns1-01.azure-dns.com | Microsoft Azure DNS |
| ns-cloud-a1.googledomains.com | Google Cloud DNS |
| ns01.domaincontrol.com | GoDaddy |
| dns1.registrar-servers.com | Namecheap |
| ns1.digitalocean.com | DigitalOcean |
Son patrones comunes, no una garantía. Un proveedor puede ponerles a sus servidores el nombre que quiera, y algunas grandes empresas operan los suyos propios.
Cómo es una configuración sana de servidores de nombres
- Al menos dos servidores de nombres, para que la caída de uno no deje el dominio fuera de línea.
- Servidores en redes distintas, para que una sola interrupción no pueda afectarlos a todos.
- El mismo conjunto en el registrador y dentro de la zona. Cuando no coinciden, hay una delegación defectuosa (lame delegation) y los resolvedores ven respuestas incoherentes.
- Que todos los servidores de la lista respondan de verdad. Uno caído ralentiza las consultas mientras los resolvedores esperan a que venza su tiempo de espera.
Cómo comprobar que un cambio de servidores de nombres funcionó
- Consulta los registros NS del dominio y confirma que muestran los servidores del nuevo proveedor.
- Dale tiempo a que caduque la respuesta anterior. Los registros (registries) de dominios y los resolvedores suelen guardar en caché los datos de los servidores de nombres durante un día o más, así que algunas redes siguen viendo los servidores antiguos por un tiempo.
- Mantén publicada la zona del proveedor anterior, con los mismos registros, hasta que el cambio se vea en todas partes. Retirarla antes de tiempo envía a algunos visitantes a un servidor que ya no responde.
- Compara el número de serie SOA de cada servidor de nombres con la herramienta de consulta DNS. Los servidores que tienen la misma zona deben informar el mismo número de serie.
Checking that a nameserver change worked
- Look up the domain's NS records and confirm they list the new provider's servers.
- Allow time for the old answer to expire. Registries and resolvers typically cache nameserver data for a day or more, so some networks keep seeing the old servers for a while.
- Keep the old provider's zone published, with the same records, until the change is visible everywhere. Taking it down early sends some visitors to a server that no longer answers.
- Ask each listed nameserver for the zone's SOA record directly and compare the serial numbers, as shown in the section on checking every server. Servers holding the same zone version report the same serial.
The same lookup on the command line
The names and addresses below are documentation values, so read them as an illustration of the output shapes. The last command resolves one nameserver's address, which this page does for you under each name.
$ dig +short NS example.com ns2.example.net. ns1.example.net. $ nslookup -type=ns example.com example.com nameserver = ns1.example.net. example.com nameserver = ns2.example.net. PS> Resolve-DnsName -Name example.com -Type NS Name Type TTL Section NameHost ---- ---- --- ------- -------- example.com NS 86400 Answer ns1.example.net example.com NS 86400 Answer ns2.example.net $ dig +short A ns1.example.net 198.51.100.53
Parent and child: why a registrar panel and this page can disagree
Two lists of nameservers exist. The registry holds the delegation, which you set through your registrar, and the zone itself holds NS records at its top. Resolvers use the registry's list to find the zone, then trust the zone's own list. This page asks a public resolver for the NS records, which normally returns the zone's own list. If that differs from your registrar panel, the zone and the delegation have drifted apart.
To read the registry's side, ask a server of the parent zone with recursion off. The command below does that for a .com name. For another top-level domain, take a server name from dig +short NS followed by the TLD, such as dig +short NS net. The registry sets the TTL on delegation records, not you, and some registries use two days (172800 seconds).
$ dig NS example.com @a.gtld-servers.net +norecurse +noall +authority example.com. 172800 IN NS ns1.example.net. example.com. 172800 IN NS ns2.example.net.
Checking every nameserver directly
This page reads the list, but it doesn't test the servers on it. To test one, ask it for the zone's SOA record. The fields are the primary server, the responsible mailbox, the serial, and the refresh, retry, expire and minimum timers.
$ dig +short SOA example.com @ns1.example.net ns1.example.net. hostmaster.example.com. 2026110901 7200 3600 1209600 3600 $ dig +short SOA example.com @ns2.example.net ns1.example.net. hostmaster.example.com. 2026110901 7200 3600 1209600 3600 PS> Resolve-DnsName -Name example.com -Type SOA -Server ns2.example.net
Equal serials mean both servers hold the same version of the zone. A lower serial on one server means it hasn't caught up with the primary. Some managed providers keep a fixed serial, in which case compare the records themselves.
A listed server that times out, answers REFUSED, or answers without being authoritative for the zone is a lame server. Remove it or fix it, because resolvers will keep trying it and waiting.
Common nameserver problems and the next step
| Symptom | Likely cause | Next step |
|---|---|---|
| You added a record and nothing changed | The domain's nameservers belong to another provider, so you edited a zone nobody reads | Look up the NS records here and edit the zone at the provider they name |
| Some visitors still see the old site after a switch | Resolvers still hold the old delegation or old answers | Keep the old zone serving identical records until the old TTLs have passed |
| Occasional failures or slow lookups | One listed nameserver is dead or lame | Query each server directly, then remove or repair the bad one |
| SERVFAIL for the whole domain | No listed server answers for the zone, the zone was deleted at the provider, or a stale DS record no longer matches the new provider's signing keys | Check that each nameserver answers, and remove any leftover DS record at the registrar if you moved to an unsigned zone |
| The domain works but ns1.example.com style names don't resolve | Glue records at the registry are missing or out of date | Correct the host addresses in your registrar's nameserver settings |
What a nameserver lookup can't prove
- It shows what a public resolver holds, which can lag after a change. It can't show a registrar change that is still pending.
- It reads the list but doesn't query each server, so it can't tell you a listed server is healthy.
- It has no DNSSEC record types, so it can't show a DS record or tell you whether the zone is signed.
- Provider names are guesses from host names. The addresses under each server say nothing reliable about where it physically runs.
Preguntas frecuentes
Herramientas relacionadas
Guías
- ¿Qué es un nameserver DNS? Cómo funciona
- Registros NS explicados: cómo funcionan los servidores de nombres DNS
- La delegación DNS explicada: cómo funcionan las zonas padre e hija
- ¿Qué es un registro SOA en DNS? Explicado
- Cómo cambiar los nameservers sin interrupciones: guía paso a paso
- ¿El DNS de GoDaddy no se propaga? Errores comunes y cómo solucionarlos