-2

I run a fresh Linux Mint 18 install, Apache2 web server hosted by me. I can access the website by IP, http://domain.tld however when I try http://www.domain.tld I get no response. My single and only DNS configuration is [Type] A record [Host] @ [Value] X.X.X.X [TTL] Auto.

I never modified any file or config after installing Apache2. Did I miss something? What am I doing wrong?

I've been looking for 2 days all around the net and I can't find out what is it.

AlphaS
  • 1
  • 3
  • 1
    have you tried the super simple task of using `dig www.domain.eu` to see if there if the address can be resolved? based on what you have described you need an additional record(CNAME can be used). Do some Googling for "www CNAME record" and try to find a result from your hosting provider. – Matt Aug 20 '16 at 21:58
  • Next time you have a DNS problem, post your zone. Or give us your real domain name. It would really help a lot! – Ryan Babchishin Aug 21 '16 at 01:20

1 Answers1

1

To confirm if you have a DNS problem simply open NSLOOKUP from a command prompt. Enter your domain name without www and then again with www and compare ip address and make sure they match.

enter image description here

Joe
  • 1,170
  • 1
  • 8
  • 12
  • I checked and the IP does not match. the non www uses my IP, the other uses some other random IP. – AlphaS Aug 20 '16 at 22:11
  • Thats your problem then. Who hosts your DNS for domain name? If you are unsure, open nslookup and type: set type=ns then enter your domain name that should point you in the right direction. – Joe Aug 20 '16 at 22:23
  • Namecheap, I've already contacted them, thank you very much guys for your help I wouldn't had find out the problem otherwise. – AlphaS Aug 20 '16 at 22:46