DICT
Dictionary network protocol
title: "DICT" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["internet-protocols", "dict-clients"] description: "Dictionary network protocol" topic_path: "technology/networking" source: "https://en.wikipedia.org/wiki/DICT" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary Dictionary network protocol ::
::data[format=table title="Infobox networking protocol"]
| Field | Value |
|---|---|
| title | DICT |
| is stack | No |
| purpose | Allow clients access to remote dictionaries |
| developer | DICT Development Group |
| date | |
| osilayer | Application layer (7) |
| ports | 2628 (TCP) |
| rfcs | A Dictionary Server Protocol |
| :: |
::callout[type=note] a network protocol ::
| title = DICT | logo = | logo alt = | image = | image alt = | caption = | is stack = No | abbreviation = | purpose = Allow clients access to remote dictionaries | developer = DICT Development Group | date = | based on = | influenced = | osilayer = Application layer (7) | ports = 2628 (TCP) | rfcs = A Dictionary Server Protocol
DICT is a dictionary network protocol created by the DICT Development Group in 1997, described by RFC 2229. Its goal is to surpass the Webster protocol to allow clients to access a variety of dictionaries via a uniform interface.
In section 3.2 of the DICT protocol RFC, queries and definitions are sent in clear-text, meaning that there is no encryption. Nevertheless, according to section 3.1 of the RFC, various forms of authentication (sans encryption) are supported, including Kerberos version 4.
The protocol consists of a few commands a server must recognize so a client can access the available data and lookup word definitions. DICT servers and clients use TCP port 2628 by default. Queries are captured in the following URL scheme:dict://;@:/::::
Resources for free dictionaries from DICT protocol servers
A repository of source files for the DICT Development group's dict protocol server (with a few sample dictionaries) is available online.
Dictionaries of English
- Bouvier's Law Dictionary, Revised 6th Ed (1856)
- CIA World Factbook
- Easton's Bible Dictionary (1897)
- Elements database
- Free On-line Dictionary of Computing
- GNU Collaborative International Dictionary of English (GCIDE)
- Hitchcock's Bible Names Dictionary
- Jargon File
- Moby Thesaurus
- Oxford Advanced Learner's Dictionary
- The Devil's Dictionary (1911)
- The U.S. Gazetteer (1990 Census)
- V.E.R.A. – Virtual Entity of Relevant Acronyms which are used in the field of computing
- Webster's Revised Unabridged Dictionary (1913)
- WordNet
Bilingual dictionaries
- Big English–Russian Dictionary
- English–French dictionary
- Freedict provides a collection of over 85 translating dictionaries, as XML source files with the data, mostly accompanied by databases generated from the XML files in the format used by DICT servers and clients. These are available from the Freedict project web site at.
- FREELANG Dictionary
- Lingvo English–Russian and Russian–English dictionaries are not free, but when purchased, can easily be converted into DICT format
- Mueller's English–Russian dictionary
- Slovak-English legal dictionary
- Slovak-Italian legal dictionary
DICT servers
- dictd (the standard server made by the DICT Development Group)
- DictD++ – modern powerful server written in C++ with heavy usage of STL and boost (abandoned)
- GNU Dico
- JDictd – a Java-based DICT server implementation (abandoned)
DICT clients
A dictd server can be used from Telnet. For example, to connect to the DICT server on localhost, on a Unix system one can normally type:
telnet localhost dict
and then enter the command "help" to see the available commands. The standard dictd package also provides a "dict" command for command-line use.
More sophisticated DICT clients include:
- cURL
- dictc (DICT Client) client for Windows written in Delphi.
- dict.org's own client (part of the dictd package)
- dictem, for the Emacs text editor
- Dictionary, an application included with Mac OS X. Online dictionaries can be accessed by setting it as the helper for 'dict://' URI schemes.
- Fantasdic
- GNOME Dictionary, comes with GNOME
- GNU dico's own client (part of the dico package)
- Kdict, comes with KDE
- KTranslator, KDE dictionary
- MaemoDict, for the Nokia 770
- MATE Dictionary (with accompanying applet)
- Mozdev.org's 'dict', a Firefox/Mozilla extension
- OKDict, an OpenOffice.org extension
- OmniDictionary, for Mac OS X
- StarDict
- ZopeDictDB for Zope from Pentila
- GoldenDict
- xfce4-dict, from the Xfce project
There are also programs that read the DICT file format directly. For example, S60Dict, is a dictionary program for Symbian Series 60 that uses DICT dictionaries. Additionally, some DICT clients, such as Fantasdic, are also capable of reading the DICT format directly.
Dict file format
The standard dictd server made by the DICT Development Group uses a special dict file format. It comprises two files, a .index file and a .dict file (or .dict.dz if compressed). These files are usually generated by a program called dictfmt. For example, the Unix command: ::code[lang=bash] dictfmt --utf8 --allchars -s "My Dictionary" -j mydict < mydict.txt ::
will compile a Unicode-compatible DICT file called mydict, with heading My Dictionary, from mydict.txt which is in Jargon File format i.e.:
:word1:definition 1 :word2:definition 2 etc.
Once the dictionary file has been produced, it can be easily installed on a server with commands similar to this:
mv mydict.dict mydict.index /usr/share/dictd/ /usr/sbin/dictdconfig—write /etc/init.d/dictd restart
Format converters
- Linguae Software is able to convert from/to wb, dict (stardict and dictd) csv, xdxf, txt, ini and ling (native) file formats, Linux, Windows and Mac OS X.
- XDXF XML Dictionary Exchange Format converts between various dictionary formats using pluggable codec architecture.
dictzip
In order to efficiently store dictionary data, dictzip, an extension to the gzip compression format (also the name of the utility), can be used to compress a .dict file. Dictzip compresses file in chunks and stores the chunk index in the gzip file header, thus allowing random access to the data.
References
References
- "dict.org". Dict.org.
- (October 1997). "rfc2229".
- "dict.org: Resources". Dict.org.
- "U.S. Gazetteer".
- "delorie.com". Delorie.com.
- "freedict.org". FreeDict Project.
- "DICT Development Group".
- (26 March 2010). "ndl.kie.ua". Ndl.kiev.ua.
- "gnu.org". Gnu.org.
- Ho Ngoc Duc. "informatik.uni-leipzig.de". Informatik.uni-leipzig.de.
- "DICT Client". SourceForge.
- (17 June 2015). "DictEm - Dictionary client for Emacs download". SourceForge.
- "garage: MaemoDict: Project Info". Garage.maemo.org.
- "mozdev.org - dict: index". Dict.mozdev.org.
- "OKDict". Kilargo.
- "Presentation". Pentila.
- "Start —". Zope.org.
- "Pentila Néro". Pentila.com.
- "apps:xfce4-dict:start [Xfce Docs]".
- Giannakakis, Kostas. "S60Dict".
- "Linguae, gestionnaire de dictionnaires". Linguae.stalikez.info.
- "soshial/xdxf_makedict · GitHub". Github.com.
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::