DNS Server ISP Romania.

Salut,

Mai jos pun lista de servere DNS oferite de fiecare Internet Service Provider (ISP) din Romania:
Voi trece în dreptul fiecarui IP și ce Reverse DNS are fiecare. Daca nu are se trece none.

  1.  DNS Telekom
    193.231.100.2 – ns1.romtelecom.net
    193.231.100.3 – ns2.romtelecom.net
    193.231.100.130 – ns3.romtelecom.net
    193.231.100.134 – ns4.romtelecom.net
  2. DNS RDS
    193.231.236.25 – dns-cache-1.rdsnet.ro
    193.231.236.30 – dns-cache-2.rdsnet.ro
    193.231.236.17 –  ns1.rdsnet.ro
    193.231.236.10 –  ns2.rdsnet.ro
    213.154.124.1   –  dns1.rcs-rds.ro
    193.231.252.1   –  dns2.rcs-rds.ro
  3. DNS Vodafone
    81.12.128.206 – 81.12.128.206.vodafonenet.ro
    81.12.132.206 – 81.12.132.206.vodafonenet.ro
    193.230.161.3  –  none
    193.230.161.4  –  none
  4. DNS Orange
    62.217.193.1  –  ns1.orange.ro
    62.217.193.65  – ns2.orange.ro
    62.217.251.167  –  dedal.orange.ro
    62.217.251.162  –  walkiria.orange.ro
  5. DNS UPC, Astral
    95.77.94.77  –  nsc2.upcbiz.ro
    78.96.7.88   –  ro-cj01a-dns01.upcnet.ro
    95.77.94.88   –  ro-buh01a-dns01.upcnet.ro
    194.102.255.2  –  ns0.b.astral.ro
    194.102.255.3   – ns1.b.astral.ro
    193.230.240.21  – ns1.upcbiz.ro
    193.230.240.22  – ns2.upcbiz.ro
    194.102.255.26  – ns3.upcbiz.ro
    193.226.99.18  –   ns4.upcbiz.ro
  6. DNS INES
    80.86.96.1    –   NS-1.iNES.RO
    80.86.96.11  –   NS-2.iNES.RO
  7. DNS Nextgen
    188.173.1.21  –  188-173-1-21.next-gen.ro
    94.53.12.14    –  94-53-12-14.next-gen.ro
  8. DNS Primetelecom
    89.37.120.6  –  ns1.primetelecom.ro
    89.34.72.42  –  ns2.primetelecom.ro

 

DNS gratuit avem o lista scurta de Google și OpenDNS:

    1. Google
      8.8.8.8   –  google-public-dns-a.google.com
      8.8.4.4   –  google-public-dns-b.google.com
    2. OpenDNS
      208.67.222.222  –  resolver1.opendns.com
      208.67.220.220  – resolver2.opendns.com
    3. DNS gratuit de la freenom.com
      80.80.80.80    – no revers DNS
      80.80.81.81     – no revers DNS
    4. DNS gratuit de la IBM quad9
      9.9.9.9 – dns.quad9.net

UPDATE: 04.12.2017

Scopul acestei postari este doar personal și voi face update periodic.

How to Clone a PostgreSQL database!

At some point in development, you may want to make a copy of your existing development database to play with an unstable new feature. Postgres makes it super trivial to do that by allow us to create a new database by using existing database as a template.

In postgres console, run

=# CREATE DATABASE new_database_name WITH TEMPLATE original_database_name;

Boom!, you got a cloned database named new_database_name.

Credit: Creating a copy of a database in Postgres
I’ve seen a convenient way to make a clone across remote server too. (Haven’t try) How to copy postgres database to another server

Easy step.
Instead of running command in psql, we can use createdb with -T flag like so

$ createdb -T original_database_name new_database_name

Credit: http://stackoverflow.com/a/6739995

How to fix auto-read-only mdadm.

This guide shows you a simple way to fix your mdadm raid based drives which are not syncing or in the auto-read-only mode.

To find the names of your drives which are under auto-read-only mode or not syncing

cat /proc/mdstat

Force the drives to sync.

mdadm --readwrite /dev/md9

Replace md9 with the name of the drive like md127 etc.
server ~ # cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] [linear] [multipath]
md125 : active (auto-read-only) raid1 sda1[0] sdb1[1]
      192640 blocks [2/2] [UU]

md126 : active raid1 sda5[0] sdb5[1]
      97650944 blocks [2/2] [UU]
        resync=DELAYED

md127 : active raid1 sdb2[1] sda2[0]
      97659008 blocks [2/2] [UU]
      [=>...................]  resync =  8.8% (8686848/97659008) finish=64.0min speed=23148K/sec

md128 : active (auto-read-only) raid1 sdb6[1] sda6[0]
      288875200 blocks [2/2] [UU]

Source Info: http://wiki.crowncloud.net/doku.php/how_to_fix_auto-read-only_mdadm

CP: max source files number arguments for copy utility

Hello

Today we have a problem: We get this error when we try to copy over 32356 file in other folder.
[root@mail server-xv.ro]# cp -p office_23\@domain.ro/new/1* office\@domain.ro/.Inbox_2016_06_23/cur/
-bash: /bin/cp: Argument list too long

Solutions: run your command in a loop.

[root@mail server-xv.ro]# for file in office_23\@domain.ro/new/*; do cp -p “$file” office\@domain.ro/.Inbox_2016_06_23/cur/; done

And works very well.

Roundcubemail change default format for date_short

If you want to change time show for mail in roundcubemail you need to do next:

[root@mail ~]# grep date_short /var/www/html/roundcubemail/config/config.inc.php
//$config['date_short'] = 'D H:i';
$config['date_short'] = 'd-m-Y H:i';

But no effect ? Go to Settings —–> Preferences —-> User Interfaces and uncheck “Pretty Dates” like picture below.

Roundcubemail date format

Could not reliably determine the server’s fully qualified domain name Ubuntu?

If you get next error:

Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Solution:
vi  /etc/apache2/conf.d/fqdn
or vi  /etc/apache2/conf-available/fqdn.conf  ( for Ubuntu 14.04 )
 add
ServerName server.domain.org
 a2enconf fqdn
 

Ubuntu server 12.04 LTS with GUI and xRDP.

Some people like GUI interface and some steps show here.

First step is to go comand line interface:

sudo apt-get update
sudo apt-get install ubuntu-desktop

install Gnome 
apt-get install gnome-shell

and reboot

After reboot we need to install xRDP

apt-get install xrdp

root@server-ubuntu-12:~# sysv-rc-conf --list | grep xrdp
xrdp 0:off 1:off 2:on 3:on 4:on 5:on 6:off

How to set locale in Ubuntu / Debian

After a clean Debian/Ubuntu install, I get the following error “LC_ALL to default locale: No such file or directory”.

Answer:  Type the following in terminal to get rid of that error,

sudo apt-get install language-pack-en-base

sudo dpkg-reconfigure locales

Other options it is to run:

 # locale-gen 

You will get

 Generating locales (this might take a while)...
   en_US.UTF-8... done
Generation complete. 

Enjoy.