How to Configure Your DayZ Server (serverDZ.cfg)
Complete DayZ serverDZ.cfg reference — every setting for identity, network, security, time, persistence, visibility, and gameplay.
DayZ uses serverDZ.cfg in the server root. The file uses C-like syntax — every line ends with a semicolon.
File Structure
How to Edit
Stop the server
In the XGamingServer Panel, go to Console and stop the server.
Open serverDZ.cfg
Click Files in the sidebar and open serverDZ.cfg in the server root.
Make changes and save
Edit the settings. Every line must end with a semicolon (;). Click Save Content.
Start the server
Start from Console.
Full Settings Reference
| Setting | Default | Description |
|---|---|---|
hostname | "" | Server name shown in the browser |
password | "" | Join password (empty = public) |
passwordAdmin | "" | Admin/RCON password |
description | "" | Description shown in the client server browser |
maxPlayers | 60 | Max concurrent players |
enableWhitelist | 0 | 0 = off, 1 = on |
shardId | "" | Six alphanumeric characters to mark as Private server. Remove or leave empty to appear in the Community browser. See Make Server Public |
| Setting | Default | Description |
|---|---|---|
steamQueryPort | 2305 | Steam browser query port (UDP). Check your panel's Network tab — XGamingServer may assign a different port |
The game port and Steam networking port are set via startup parameters, not in the cfg. Check the Startup tab for
-port=values.
Required Ports
| Port | Protocol | Purpose |
|---|---|---|
| Game port | UDP | Game traffic (default 2302) |
| Game port +2 | UDP | Steam networking |
steamQueryPort | UDP | Steam query (browser listing) |
| RCON port | TCP | BattlEye RCON (default 2306) |
| Setting | Default | Description |
|---|---|---|
BattlEye | 1 | Anti-cheat (0 = off, 1 = on) |
verifySignatures | 2 | PBO signature check (must be 2) |
forceSameBuild | 1 | Require matching game version to join |
allowFilePatching | 1 | Allow clients using -filePatching |
| Setting | Default | Description |
|---|---|---|
disable3rdPerson | 0 | 1 = first person only |
disableCrosshair | 0 | Toggle crosshair |
disablePersonalLight | 1 | Disable the personal light (ambient glow near player in dark) |
lightingConfig | 0 | Lighting configuration preset |
disableVoN | 0 | Disable voice chat |
vonCodecQuality | 20 | Voice quality (0–30) |
respawnTime | 5 | Seconds before respawn |
| Setting | Default | Description |
|---|---|---|
serverTime | "SystemTime" | Initial time. Use "SystemTime" for local machine time, or a fixed value like "2015/4/8/17/23" (YYYY/MM/DD/HH/MM) |
serverTimeAcceleration | 12 | Time speed multiplier. 1 = real time, 12 = full day/night cycle in ~2 hours |
serverNightTimeAcceleration | 1 | Night speed multiplier (stacks with serverTimeAcceleration). Higher = shorter nights |
serverTimePersistent | 0 | Save time across restarts (0 = reset to serverTime on restart) |
Time Examples
serverTimeAcceleration | serverNightTimeAcceleration | Effect |
|---|---|---|
| 12 | 1 | Full cycle in ~2 hours, night same speed as day |
| 12 | 4 | Full cycle in ~2 hours, nights ~4x faster (very short nights) |
| 4 | 2 | Day 4x speed, night 8x speed |
| 1 | 64 | Real-time days, ~22 minute nights |
| Setting | Default | Description |
|---|---|---|
instanceId | 1 | Server instance ID. Identifies storage folders for persistence files |
storageAutoFix | 1 | Check for corrupted persistence files and replace with empty ones (0 = off, 1 = on) |
guaranteedUpdates | 1 | Communication protocol (always use 1) |
Persistence data is stored in mpmissions/<template>/storage_1/. See Persistence Settings.
| Setting | Default | Description |
|---|---|---|
loginQueueConcurrentPlayers | 5 | Players processed simultaneously during login. Prevents performance drops during mass connections |
loginQueueMaxPlayers | 500 | Max players that can wait in the login queue |
Map Selection
The map is set in the Missions class block at the bottom of serverDZ.cfg:
class Missions
{
class DayZ
{
template="dayzOffline.chernarusplus";
};
};| Map | Template | Notes |
|---|---|---|
| Chernarus+ | dayzOffline.chernarusplus | Default vanilla map |
| Livonia | dayzOffline.enoch | Requires Livonia DLC |
| Sakhal | dayzOffline.sakhal | Requires Frostline DLC |
See Map Guide for community maps.
Example serverDZ.cfg
hostname = "My DayZ Server";
password = "";
passwordAdmin = "MyAdminPass";
description = "A survival server";
enableWhitelist = 0;
maxPlayers = 60;
verifySignatures = 2;
forceSameBuild = 1;
BattlEye = 1;
disableVoN = 0;
vonCodecQuality = 20;
disable3rdPerson = 0;
disableCrosshair = 0;
disablePersonalLight = 1;
lightingConfig = 0;
serverTime = "SystemTime";
serverTimeAcceleration = 12;
serverNightTimeAcceleration = 1;
serverTimePersistent = 0;
guaranteedUpdates = 1;
loginQueueConcurrentPlayers = 5;
loginQueueMaxPlayers = 500;
instanceId = 1;
storageAutoFix = 1;
steamQueryPort = 2305;
class Missions
{
class DayZ
{
template = "dayzOffline.chernarusplus";
};
};Related Guides
How is this guide?
