Skip to content

Unable to set nameservers: DNS query refused

Before you can add a domain name to your account, you need to point it to the InfinityFree nameservers first. However, some domain providers show an error like this when trying to change the nameservers:

DNS Query Refused

If that happens, your registrar will tell you that the nameservers must be configured first.

What causes this issue

Before you can add your domain to your InfinityFree account, you need to verify you can control the domain. The only way to do so right now is by setting the nameservers at your registrar.

When setting the nameservers for your domain, your registrar may check whether the InfinityFree nameservers contain DNS records for your domain name. This will fail, because the DNS records for your domain name are created when the domain name is added to your hosting account.

So InfinityFree requires the domain name to be configured before the DNS records are set up, but your registrar requires the DNS records to be set up before the domain name can be configured. Because of this contradiction, you're unable to setup the domain name with that domain provider.

How can I solve this

Right now, there is no other way to validate domain ownership in any other way.

If the nameserver check is enforced by your domain registrar (the company licensed to issue domain names), you can check with them to see if there is a way to circument these checks. Some domain registrars may be able to update your domain's nameservers anyways. If that's not possible, you can transfer the domain name to a different domain registrar which doesn't enforce such checks. For example, NameSilo doesn't enforce additional nameserver checks.

If the nameserver check is enforced by the domain registry (the company responsible for the operation of the domain extension), it's not possible to circumvent this. This means it's not possible to host such domains on InfinityFree. The registries of the following (non-exhaustive) list of domain extensions are known to enforce such checks at the registry level.

  • .com.br
  • .dk
  • .it

Alternative domain verification methods may be added in the future.