It's hard to tell from the available data, but the most obvious problem is the fact you have an Alias (CNAME) record for server.mycompany.com that points to... server.mycompany.com.
In other words, a circular reference where one hostname points to itself.
Nix the alias record, since it isn't needed. Then see if you continue to have problems.
Hello Camelot, thanks for reply.
Yes your solution reached me further , and now iam not getting the error message from terminal and i have attached the new screen shots.
*after i create DNS and i confirment the dns was right using terminal, I create open directory master and create new user.(all services are accessible to all users in server.) my problem is i can send emails using my server, but i cannot received any emails. what log should i check ?,
* And after i enable the web service on server i remotely log in to another pc (different location) and enter server.mydomain.sk (DNS name )in to web browser and it reached to server default wiki page.
so that means DNS os the server is working correctly isn't it ? if DNS working correctly what caused E-mail issue ?
Thanks in advance.
It's hard to answer why mail doesn't work - there are many possibilities.
Most importantly, though, are you talking about receiving mail from external hosts/domains? or from your own?
If you're talking about from external sources, then your own DNS server has little or nothing to do with external DNS (at least as it's currently setup).
Your DNS server is saying that mail for your domain is handled by server.mydomain.sk, and that server's address is 192.168.1.20.
No external host in the world is going to be able to connect to that address, so if this server is running your public DNS you need to change that.
What MOST people do is run two DNS servers - one is internal to their LAN and knows about all their private addresses (192.168.x.x, etc.). This server also knows all the details of your network, such as printers, clients, switches, etc. that you don't (usually) want exposed to the outside world.
Then there's a second DNS server that handles all public queries and it knows about the hosts that external users might lookup - for example your domain's web server address, mail server, etc.
These two servers could be on the same machine, but they are commonly separate. For small networks, many people use their ISP or domain registrar to handle the public side of their DNS.
Without knowing more about your domain and how you (think you) are running DNS, it's hard to know if that's your issue.
thanks again for considering this matter.
We own the domain name "mydomain.sk" and we have Static IP from our ISP, our domain is pointed to our static ip address which is (88.99.123 .45).
what we need to do :
So emails from out side should come to server first and then to our email clients. So the domain hosted in our server.
Please see the attachment, Consider my dns name is server.mycompany.sk and i tried to log in from different location and it direct me to this web page (web service enabled on server ) and i can log in to the my user account , is that means Open directory and DNS working in server ?
Regarding Local ip
Yes my server local ip is 192.168.1.20, But my static ip address is 88.99.123 .45, and I have configured the router, requests that comes to 88.99.123 .45 will forwarded to 192.168.1.20 which is a server. is that wrong ?