Installation and configuration of the IRC server – ircd-irc2

On the test I will launch IRC (Internet Relay Chat) server ircd-irc2 in Ubuntu Server 14.04.

The first command is to install the IRC server in Ubuntu:

sudo apt-get install ircd-irc2

There are several configuration files in the /etc/ircd/ directory: /etc/ircd/ircd.conf (main), /etc/ircd/ircd.motd (message to users when connecting), /etc/ircd/iauth.conf (connection parameters ).
In the /usr/share/doc/ircd-irc2/ directory, you can see examples of configuration files.

After the changes in the configuration files, you must reboot the IRC server:

sudo /etc/init.d/ircd-irc2 restart

Users can create and connect to channels with this command:

/join #channel_name

Installing Tarantool in Ubuntu

To install Tarantool in Ubuntu, execute the following commands:

sudo apt-get update
sudo apt-get install tarantool

I installed version 1.5 on the test, and the newest at that time was 1.7rc (the version can be viewed on the official site by the link below), so update the sources:

curl | sudo apt-key add -
release=`lsb_release -c -s`
sudo apt-get -y install apt-transport-https
sudo rm -f /etc/apt/sources.list.d/*tarantool*.list
sudo tee /etc/apt/sources.list.d/tarantool_1_7.list <<- EOF
deb $release main
deb-src $release main

And we will perform the installation of the newest version, if the installation of Tarantool has already been performed, the update will be:

sudo apt-get update
sudo apt-get -y install tarantool

Lowering the priority of IPv6

It took one day to lower the priority of IPv6 on one of the servers at, as the IPv6 network was unstable, some hosts were periodically unavailable by IPv6, delays appeared, etc.

To decrease the priority, just open the /etc/gai.conf file in the text editor (for example, nano, in which Ctrl+X to exit, and y/n to save or cancel changes):

nano /etc/gai.conf

Find the line there:

#precedence ::ffff:0:0/96  100

And uncomment it or add:

precedence ::ffff:0:0/96  100


Installing system-config-samba

system-config-samba – a simple application for configuring samba with a graphical interface.

Installing by the command:

sudo apt-get install system-config-samba


sudo system-config-samba

Allows you to add shared folders, samba users, assign permissions to folders, etc., all changes are saved to samba configuration files.

See also:
Installing and Configuring Samba on Linux

Configure the PTR record on the DNS server

It was necessary to somehow configure the Reverse DNS zone for the mail server, since some servers did not want to receive mail from it.

Let’s assume our domain located on the IP address, and – the server of the Internet provider.

You can check from Windows with commands (where for example is the address of our mail server, and DNS on which the request is sent):


In response, the first command will be, and in response the second one is nothing (it should be, since the PTR record is not configured in DNS.

From Linux, you can check:

dig -x

At the registrar of domain names in DNS we will add the NS-server of the Internet provider

On the provider’s server (on the test I use Bind9 on Ubuntu Server), open the DNS configuration file for example in the nano editor (CTRL+X for exit, y/x and Enter for saving or canceling changes):

sudo nano /etc/bind/named.conf

And add the following lines:

zone "" {
type master;
file "/etc/bind/";

The first line indicates which zone we will manage, the second type – the main one (this DNS will manage it), the third one – in which file the configuration for this zone will be registered.

Open a new file for zone settings:

sudo nano /etc/bind/

And add to it:

$TTL 3600
@          IN SOA (
              2016112301       ; Serial
              21600             ; refresh
              3600              ; retry
              3600000           ; expire
              86400 )           ; minimum

        IN  NS
        IN  NS

100      IN PTR – the contact address of the person responsible for the zone, the @ symbol is not indicated.
Serial – this is the serial number of the zone file version, it should change to the big side with each change, it is usually written in the form of the year month the number is the number of the change, according to it other DNS determine that it is necessary to update the information.
Refresh – the time interval in seconds through which the secondary server will check whether the information needs to be updated.
Retry – the time interval in seconds through which the secondary server will retry calls on failure.
Expire – the time interval in seconds through which the secondary server will consider the information it has obsolete.
Minimum – the interval of information lifetime on caching servers. and this is the DNS of this domain.
The number 100 in the last line means the end of IP address 192.168.1, similarly you can specify entries for other domains, for example 101 IN PTR … for, etc.

Restart the DNS server to apply the changes.
Bind9 can be commanded by:

sudo /etc/init.d/bind9 restart


See also:
Configuring Reverse DNS (PTR) in Hetzner