# Why the 'wpad' DNS Record Doesn't Work on Windows Server by Default and How to Enable It

URL: https://xunil.de/posts/wpad-dns-windows-server/
Author: Kim Nis Neuhauss
Published: 2025-07-09
Tags: Tech

> Learn why Microsoft blocks WPAD DNS records by default and how to safely enable them.

The Web Proxy Auto-Discovery Protocol (WPAD) is commonly used to distribute proxy settings automatically in enterprise networks. However, if you've tried to set up a `wpad` DNS record on Windows Server, you may have noticed it doesn't work by default.

## Why is the 'wpad' Record Disabled by Default?

Microsoft disables the `wpad` name resolution as a security measure. The primary risk is **WPAD spoofing attacks**, where an attacker registers a malicious WPAD server to intercept traffic and extract sensitive information like usernames, passwords, or confidential data.

## How to Enable WPAD

Follow these steps to enable WPAD on your Windows Server DNS:

### Step 1: Check the GlobalQueryBlockList

First, view the current block list:

```powershell
dnscmd /info /GlobalQueryBlockList
```

You'll likely see output like:

```
Global Query Block List:
    wpad
    isatap
```

### Step 2: Remove 'wpad' from the Block List

To remove wpad from the block list while keeping isatap blocked:

```powershell
dnscmd /config /GlobalQueryBlockList isatap
```

Then restart the DNS service:

```powershell
Restart-Service DNS
```

### Step 3: Create the WPAD DNS Record

In DNS Manager:
1. Open your forward lookup zone
2. Create a new A record
3. Name: `wpad`
4. IP Address: Your web server hosting the wpad.dat file

### Step 4: Host the WPAD File

Create and host a `wpad.dat` file in the root directory of your web server. It should be accessible at:

```
http://wpad.yourdomain.local/wpad.dat
```

## Security Considerations

If you decide to enable WPAD, follow these best practices:

1. **Only enable in trusted networks** – Don't enable WPAD on networks with untrusted devices
2. **Serve WPAD over HTTPS** – If possible, configure HTTPS for the WPAD file
3. **Use DNSSEC** – Implement DNSSEC to protect against DNS spoofing
4. **Limit to internal networks** – Never expose WPAD to the internet

## Conclusion

Blocking the `wpad` DNS record is a thoughtful security measure by Microsoft. If you need WPAD functionality, you can easily enable it—just make sure to follow security best practices to protect your network.
