# The server refuses queries for domains it does not host

UrbeStack sysadmin note about BIND. Last updated 30 Nov 2026.

When you query the server with `dig` for a domain it does not host, it returns `status: REFUSED`. This is expected because UrbeStack configures BIND to answer only for its own zones.

## Symptoms

A query for a domain the server does not host returns a refusal.

```
dig @127.0.0.1 google.com A
```
```output
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 43042
;; WARNING: recursion requested but not available
```

Queries for zones the server hosts return answers.

## Cause

UrbeStack disables recursion in BIND. The server answers only for the zones it holds.

A server that resolves any name for anyone is an open resolver. Attackers use open resolvers for amplification.

## Resolution

The refusal is expected. The server's own lookups use the resolvers in `/etc/resolv.conf`. Use a resolver such as the hosting provider's and keep the server's own IP address out of that file. With recursion disabled, the server would refuse those lookups too.

To test the server's DNS, query it for a zone it hosts.

```
dig @127.0.0.1 example.com A
```

The server returns an answer for its zone.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
