Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a domain mydomain.com for example and use freedns service to add an A record and the destination ip to my webserver. If i try to access mydomain.com or put the ip server into the url all works fine. But after a couple of hours, i can't reach the server through my domain name or through my ip.

I try to access mydomain.com and is now working, i access mydomain.com via the ip of my server and still is not working. I go to the cmd and try ping mydomain.com and is working, i ping mydomain.com ip and is working, please tell me what is wrong.

Problem solved, solution: somebody from my network was searching for ip and mac. And after he found the ip and mac he associated on his computer and he had access to the internet and not i. Now i need i way to hide my mac or my ip so that the user cannot see my mac in the program he use. Thanks for all the anserws.

share|improve this question
    
Most likely, the freeDNS service requires you to 'refresh' your listing every few hours. –  David Schwartz Oct 23 '11 at 19:42
6  
I'll keep hammering on this ancillary point until, well, until people really take it to heart: There is no value at all in obfuscating the domain name in question ("mydomain.com"). DNS is publicly published information. Unless you are using the domain strictly on internal, private networks, hiding the domain only forces those whom you would like to help you to guess at what the problem might be. We can't perform even the most basic of DNS diagnostics. It merely wastes your time and ours. –  anastrophe Oct 23 '11 at 20:34
    
@anastrophe: I can imagine his boss not being happy about going extenal with internal problems... –  Bart De Vos Oct 25 '11 at 8:35
    
@BartDeVos, Perhaps, but that really isn't our problem. People come here with their problems, and experts provide answers, free of charge. Obfuscating critical details essentially abuses our goodwill. –  anastrophe Oct 25 '11 at 18:23
add comment

3 Answers

You say you have a static IP address so you would be better off using a "free static DNS provider" - try putting that term into your favourite search engine.

share|improve this answer
add comment

But after a couple of hours, i can't reach the server through my domain name or through my ip.

This, together with the fact that you are able to ping the server, tells me that most likely your web server service (not the server itself) is crashing. Restart the service and check the logs to try and find out why it keeps failing.

share|improve this answer
    
Like this: sudo /etc/init.d/apache2 restart? Where can i find the service logs? Do you mean /var/log/apache2/error.log? –  saveandload.com Oct 25 '11 at 8:32
    
Yes, like that (assuming you are indeed running Apache). Definitely check the Apache error log(s) and also check the messages log. –  John Gardeniers Oct 25 '11 at 8:36
    
I found this in /var/log/apache2/error.log: [Mon Oct 24 19:01:21 2011] [error] [client 65.110.21.234] File does not exist: /var/www/w00tw00t.at.blackhats.romanian.anti-sec:) –  saveandload.com Oct 25 '11 at 8:45
    
@mjonutz, that's just a file not found while someone was trying to hack your site. Pretty normal stuff. –  John Gardeniers Oct 25 '11 at 11:03
add comment

You need to set up a daemon to keep the listing updated, when you use a dynamic DNS service. Check out this guide for example: https://help.ubuntu.com/community/DynamicDNS

share|improve this answer
    
From your question - are you saying that you can't access the webserver by IP-address either, after a couple of hours? How do you usually fix this? –  Kvisle Oct 24 '11 at 17:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.