The Domain Name System (DNS) is a hierarchical decentralized naming system. It’s used for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates more readily memorized domain names to the numerical IP addresses.Continue Reading
Tag: Network
How to mount a remote directory to a local file system
SSH (Secure Shell) is a protocol to providing an encrypted channel for logging into another computer over a network and work there. First of all we need to install sshfs (see also “How to transfer a file from local path to SSH server“). SSHFS (SSH Filesystem) is a filesystem client to mount and interact with directoriesContinue Reading
How to make a layer 2 bridge between two or more Ethernet interfaces on Ubuntu Linux
The layer 2 bridging is an implementation of IEEE 802.1 D. This is the transparent bridging that was used in Ethernet layer bridges. Install package: apt-get install bridge-utils Next we’ll create a fake bridge interface: brctl addbr br0brctl stp br0 on # Enable STP in case of network loops Now we can add interfaces toContinue Reading
An error on sudo: «unable to resolve host»
As we already saw in “How to set hostname in Linux“, hostname is used to identify the device in network. If we have not hostname matched to our ip, we can’t resolve our host. Edit /etc/hosts: 127.0.0.1 localhost# HERE! 127.0.1.1 HOSTNAME # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnetContinue Reading
How to set hostname in Linux
In computer networking, a hostname (archaically nodename) is a label. It’s assigned to a device connected to a computer network. That is used to identify the device in network. sudo hostname {{ new hostname }} – Will work till system restart. Define hostname permanently: For newer distributives, that uses SystemD init system: sudo hostnamectl set-hostname {{ new hostname }}Continue Reading
How to transfer a file from local path to SSH server
SSH (Secure Shell) is a protocol to providing an encrypted channel for logging into another computer over a network and work there. SCP is like a cp over ssh – coping files from/to remote server over encrypted connection. So we can use scp to copy file to ssh server: scp /path/to/local/file user@remote_server:/path/to/destination For example: scpContinue Reading
How to get all SSH connections to the Linux server
SSH (Secure Shell) provides an encrypted channel for logging into another computer over a network, executing commands on a remote computer, and moving files from one computer to another. You may want to know all users on your server, for example, if cpu load grows. If you can use modern utility ss try this: ss -o stateContinue Reading
Siege – regression test and benchmark utility
Siege is an open source regression test and benchmark utility. It can stress test a single URL with a user defined number of simulated users, or it can read many URLs into memory and stress them simultaneously. Basic usage: siege -b -c=10 -t=5m {{ url }} Useful keys: -c, –concurrent=N How many parallel requests-t, –time=MINSmContinue Reading
Curl basic usage and examples
cUrl is a powerful tool for creating HTTP requests. If you need to make almost any HTTP request from console – use CURL! So, let’s see some curl’s keys: Options: -o {{ file }} # –output: write to file -u user:pass # –user: Authentication -v # –verbose -vv # Even more verbose -I # –head:Continue Reading