After resolving issue by issue the dns is working again, the most of the packages are also working and now I remember that I have written 'yum upgrade' instead of 'yum update' which upgraded CentOs to 7.4.
Anyway now I think that I will have to prepare a new server and migrate all data.