Get started

Free trial Try any game free for 3 days. No card needed. Start a free trial Start a free trial

Game servers

All games

Guides / DayZ / Config

DayZ serverDZ.cfg explained, key by key

What each main serverDZ.cfg key does, its allowed values, how the file is written, and which keys the panel rewrites from Startup at every start.

Updated , checked on DayZ 1.29

serverDZ.cfg is DayZ’s main server settings file. Each line is key = value;. This guide lists the main keys with the meaning and range Bohemia gives. Keys marked “Startup” are rewritten by the panel from the Startup page at every start (Loafhosts panel only; a self-hosted server has no such page).

The file format

  • One setting per line: maxPlayers = 60;. End every line with a semicolon.
  • Text goes in double quotes: hostname = "My server";.
  • Numbers have no quotes. For on and off, 0 is off and 1 is on.
  • Everything after // on a line is a comment.
  • A list uses [] after the key and braces: motd[] = { "line1","line2" };.
  • The map is set in a block. Blocks end with };.
class Missions
{
	class DayZ
	{
		template = "dayzOffline.chernarusplus";
	};
};

The template value is the mission folder name in mpmissions: dayzOffline.chernarusplus (Chernarus), dayzOffline.enoch (Livonia) or dayzOffline.sakhal (Sakhal). The file does not have to be called serverDZ.cfg. The name comes from the -config launch option.

Main keys

KeyMeaningValues
hostnameServer name. Startuptext
descriptionShown in the server browsertext, up to 255 characters
passwordPassword to join. Startuptext, empty for none
passwordAdminPassword to become admin. Startuptext
maxPlayersMost players at once. Startupnumber
enableWhitelistOnly players in the whitelist can join0 or 1
disableBanlistIgnore ban.txtfalse (default) or true
disablePrioritylistIgnore priority.txtfalse (default) or true
verifySignaturesChecks mod files against .bisign files. Startuponly 2 is supported
forceSameBuildOnly clients with the same game version may join. Startup0 or 1
disableVoNVoice chat off. Startup0 or 1
vonCodecQualityVoice quality, higher is better. Startup0 to 20
disable3rdPersonTurns off third person. Startup0 or 1
disableCrosshairTurns off the crosshair. Startup0 or 1
disablePersonalLightTurns off the personal light at night. Startup0 or 1
lightingConfig0 brighter night, 1 darker night, 2 Sakhal lighting. Startup0, 1 or 2
serverTimeTime when the server starts"SystemTime" or "YYYY/MM/DD/HH/MM"
serverTimeAccelerationHow many times faster than real time. Startup0.1 to 64
serverNightTimeAccelerationExtra multiplier at night, on top of the line above. Startup0.1 to 64
serverTimePersistentSave the time and use it at the next start. Startup0 or 1
guaranteedUpdatesNetwork protocolonly 1
loginQueueConcurrentPlayersPlayers handled at once while logging innumber
loginQueueMaxPlayersMost players waiting in the login queuenumber
instanceIdServer instance number, names the save foldernumber
storageAutoFixReplace a damaged save file with an empty one0 or 1
steamQueryPortSteam query port. Startupport number

Bohemia’s examples are 60 for maxPlayers, 5 for loginQueueConcurrentPlayers and 500 for loginQueueMaxPlayers. Those are examples, not limits.

More keys

KeyMeaningDefault or example
respawnTimeSeconds before a dead player can respawn5
motd[] and motdIntervalMessages in chat, and seconds between themmotdInterval = 1
disableBaseDamageFences and watchtowers cannot be damaged0 or 1
disableContainerDamageTents, barrels, wooden crates and sea chests cannot be damaged0 or 1
disableRespawnDialogNew characters spawn at random0 or 1
pingWarning, pingCritical, MaxPingPing in milliseconds for the yellow warning, the red warning and a kick200, 250, 300
serverFpsWarningServer frame rate that triggers a warningminimum 11
defaultVisibility, defaultObjectViewDistanceHighest terrain and object view distance, in metres1375 in Bohemia’s example
enableDebugMonitorShows a small health readout to players0 or 1
shotValidationThe server checks shots0 or 1
adminLogPlayerHitsOnly, adminLogPlacement, adminLogBuildActions, adminLogPlayerListWhat the admin log records0 or 1
enableCfgGameplayFileRead cfggameplay.json from the mission folder0 or 1

If enableCfgGameplayFile is on, the lightingConfig value in cfggameplay.json replaces the one here.

Which keys the panel rewrites

At every start the panel writes the keys marked Startup from the Startup page: Server Name, Server Password, Admin Password, Max Players, Verify Signatures, Enforce Game Version, Disable VoN, VoN Quality, Disable Third Person, Disable Crosshair, Disable Personal Light, Darker Nights, Time Multiplier, Night Multiplier, Persistent Time and the Steam query port. If you edit these lines in the file, your edit is replaced at the next start. The Startup fields have their own ranges: Time Multiplier takes a whole number from 0 to 24, and the VoN Quality field allows 30, but use 20 or less, the top of Bohemia’s range. The Config Editor shows them locked. See DayZ Config Editor.

Every other key you can change in the file or in the Config Editor. Stop the server first. A running server reads the file only when it starts.

If it does not work

  • The server will not start after an edit. Check for a missing semicolon, a missing quote or a missing };.
  • A value you set is back to the old one. It is a Startup key. Change it on Startup.
  • A key has no effect. Check that it is spelled exactly as above, for example MaxPing, and that it is not a Startup key.
  • The file is not read. The -config launch option decides which file the server loads.

More about the game: DayZ servers.

Sources: Bohemia wiki: Server Configuration

DayZ serversAll DayZ guides