1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

DNS Problem (www. don't work, yet without it does)

Discussion in 'Site & Server Administration' started by SoftCloud, May 18, 2009.

  1. #1
    The title basically says it all.

    I changed the DNS settings of a domain back on the 4th May and still to this day (so 14 days / 2 weeks) it's still not accessible to everyone (including me) with the 'www.' at the beginning, yet not using the 'www.' does work.

    The domain name is on my GoDaddy account and I've got it using the default DNS settings on my [Plesk] VPS.

    Anyone know the reason for this?

    (Also a note: DNS changes are "supposed" to be all sorted by 72 hours... it's been way LONGER than that)
     
    SoftCloud, May 18, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Add a record to your dns

    It should be a A Name Record the name should be www and point it to your ip
     
    Bohra, May 18, 2009 IP
  3. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #3
    OK, quickest way would be to create the www DNS record as a CNAME to the 'non-www' version. You have to wait for the DNS server itself it update, then all the other DNS servers around the world with the previous results cached to update their caches as well.

    If you need more help but don't want to give the domain name on the forum, send me a PM with it in and I'll have a look to see what servers are authorative for those records, etc.
     
    relixx, May 18, 2009 IP
  4. SoftCloud

    SoftCloud Well-Known Member

    Messages:
    1,060
    Likes Received:
    28
    Best Answers:
    2
    Trophy Points:
    120
    #4
    So like this:

    [​IMG]
     
    SoftCloud, May 18, 2009 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    Yes Exactly
     
    Bohra, May 18, 2009 IP
  6. SoftCloud

    SoftCloud Well-Known Member

    Messages:
    1,060
    Likes Received:
    28
    Best Answers:
    2
    Trophy Points:
    120
    #6
    It's working now. :D
     
    SoftCloud, May 19, 2009 IP
  7. ravee1981

    ravee1981 Active Member

    Messages:
    712
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #7
    is it A Name? I thought it was CNAME
     
    ravee1981, May 21, 2009 IP
  8. mierdaa

    mierdaa Guest

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    what A stands for?
     
    mierdaa, May 21, 2009 IP
  9. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #9
    Address. With DNS records, an A record means that there is an IP address assigned to that domain name
     
    relixx, May 21, 2009 IP
  10. killjoy

    killjoy Well-Known Member

    Messages:
    201
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #10
    A is the address (IP Address)

    so, you have domain.com as A
    you setup a subdomain as C

    i.e.

    A domain.com "123.123.123.123"
    C www.domain.com "domain.com"
     
    killjoy, May 21, 2009 IP
  11. killjoy

    killjoy Well-Known Member

    Messages:
    201
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #11
    Also while your at it, set up ww. and wwww. as sub domains.

    I bet everyone has gone to type a website, www.domain.co.uk and only typed two w's i.e. ww.domain.co.uk or even double pressed the key to get four w's i.e. wwww.domain.co.uk.

    Help visitors to your websites that do this easy mistake.

    In DNS add ww. and wwww. to my C name.

    In apache add the following into the Apache conf in the VirtualHost...
    ServerName domain.co.uk
    ServerAlias ww.domain.co.uk
    ServerAlias www.domain.co.uk
    ServerAlias wwww.domain.co.uk

    All of these are setup and working, you can enter ww.domain.co.uk and it loads the site.

    Next is to send the ww. to www. etc

    In .htaccess

    RewriteCond %{HTTP_HOST} ^domain\.co\.uk$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^ww\.domain\.co\.uk$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^wwww\.domain\.co\.uk$ [NC]
    RewriteRule ^(.*) http://www.domain.co.uk/$1 [L,R=301]

    Done! improve direct traffic :)
     
    killjoy, May 21, 2009 IP
  12. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #12
    In your dns server settings (zone file in /var/named/domain.com.db) you need to include CNAME record for www.

    That should work!
     
    olddocks, May 21, 2009 IP
  13. gary4gar

    gary4gar Peon

    Messages:
    496
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #13
    we could further assist you, if you would tell us what domain you are trying to trouble-shoot
     
    gary4gar, May 21, 2009 IP