OnWorks favicon

dnsdist - Online in the Cloud

Run dnsdist in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dnsdist that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



dnsdist - tool to balance DNS queries over downstream servers


dnsdist [OPTION]... ADDRESS...


dnsdist receives DNS queries and relays them to one or more downstream servers. It
subsequently sends back responses to the original requestor.

dnsdist operates over TCP and UDP, and strives to deliver very high performance over both.

Currently, queries are sent to the downstream server with the least outstanding queries.
This effectively implies load balancing, making sure that slower servers get less queries.

If a reply has not come in after a few seconds, it is removed from the queue, but in the
short term, timeouts do cause a server to get less traffic.

IPv4 and IPv6 operation can be mixed and matched, in other words, queries coming in over
IPv6 could be forwarded to IPv4 and vice versa.

dnsdist is scriptable in Lua, see the dnsdist documentation for more information on this.


dnsdist does not 'think' about DNS, and does not perform any kind of caching, nor is it
aware of the quality of the answers it is relaying.

dnsdist assumes that each query leads to exactly one response, which is true for all DNS
except for AXFR, which is therefore not supported.

The goal for dnsdist is to remain simple. If more powerful loadbalancing is required,
dedicated hardware or software is recommended. Linux Virtual Server for example is often


-a,--acl NETMASK
Add NETMASK to the ACL.

-C,--config FILE
Load configuration from FILE.

Operate as a client, connect to dnsdist.

Operate as a daemon.

-e,--execute CMD
Connect to dnsdist and execute CMD.

Display a helpful message and exit.

-l,--local ADDRESS
Bind to ADDRESS, Supply as many addresses (using multiple --local statements) to
listen on as required. Specify IPv4 as and IPv6 as [::]:53.

Run in foreground, but do not spawn a console. Use this switch to run dnsdist
inside a supervisor (use with e.g. systemd and daemontools).

-p,--pidfile FILE
Write a pidfile to FILE, works only with --daemon.

-u,--uid UID
Change the process user to UID after binding sockets. UID can be a name or number.

-g,--gid GID
Change the process group to GID after binding sockets. GID Can be a name or

Show the dnsdist version and exit.

Any number of downstream DNS servers, in the same syntax as used with --local. If
the port is not specified, 53 is used.

Use dnsdist online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    Download Eclipse Tomcat Plugin
  • 2
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 3
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 4
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 5
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 6
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • More »

Linux commands