Server error, I think DNS related.

Discussion in 'Site & Server Administration' started by mbaldwin, Mar 12, 2010.

  1. #1
    Hi,
    Well, I seem to be having DNS issues with my VPS, and I can't seem to get it figured out. From SSH, I can only ping an IP address, not a host name. My nameservers in resolv.conf are
    nameserver 66.90.68.25
    nameserver 66.90.68.26

    I have changed these to different nameservers, and that solved my issue of only pinging ip addresses, but my sites are still not working.
    When restarting apache, I get this
    httpd: Could not reliably determine the server's fully qualified domain name, using 67.23.224.223 for ServerName
    [Sat Mar 13 10:32:28 2010] [warn] NameVirtualHost 67.23.224.223:80 has no VirtualHosts
    [Sat Mar 13 10:32:28 2010] [warn] NameVirtualHost 67.23.224.223:443 has no VirtualHosts

    The ip address 67.23.224.223 is the one that I was assigned for my vps.
    I am sharing this IP with 10 domains, which wasn't a problem before, so I don't think that is the problem now.
    Here is the InToDNS for a few of my domains.
    http://www.intodns.com/ultimatedogtrainingrevealed.com
    http://www.intodns.com/readwithdots.com
    http://www.intodns.com/greatarticlesite.com
    http://www.intodns.com/checkbooktogo.com

    Running CentOS 5.4 with
    Apache 2.2.3

    Any assistance would be greatly appreciated.

    Thanks,
    Michael
     
    mbaldwin, Mar 12, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Do you have a firewall running? i would suggest you add these nameservers to the top of your resolve.conf:

    nameserver 208.67.220.220
    nameserver 208.67.222.222
    nameserver 8.8.8.8
    nameserver 8.8.4.4

    Those are OpenDNS and Google public name servers.

    What do you have listed as your hostname?

    cat /etc/hosts

    It sounds like things are DNS related for sure.
     
    RHS-Chris, Mar 12, 2010 IP
  3. mbaldwin

    mbaldwin Active Member

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    95
    #3
    Hi,
    I do not think i have a fire wall.

    nameservers are updated to what you suggested.

    /etc/hosts shows this
    
    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    67.23.224.223 servermi
    
    Code (markup):
    Thanks,
    Michael
     
    mbaldwin, Mar 12, 2010 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    You need to give your server a fully qualified domain name. Take one of the domains you have hosted and change your /etc/hosts to suit:

    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    67.23.224.223 servermi.domain.com servermi
    Code (markup):
    Do you use a control panel with this server? If so, you may want to use that to make the changes as needed ("# Auto-generated hostname. Please do not remove this comment")
     
    RHS-Chris, Mar 12, 2010 IP
  5. mbaldwin

    mbaldwin Active Member

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    95
    #5
    Thanks,
    I changed the /etc/hosts like you suggested, it now reads:

    
    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    67.23.224.223 servermi.michaelbaldwin.net servermi
    
    Code (markup):
    i have Kloxo CP, but i understand it isn't the most secure, so i am trying to learn to do it all without the CP.

    Thanks,
    Michael
     
    mbaldwin, Mar 12, 2010 IP
  6. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #6
    olddocks, Mar 13, 2010 IP
  7. mbaldwin

    mbaldwin Active Member

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    95
    #7
    I have DJBDNS, not Bind installed.
    I could try changing that out, think it will make a difference?

    Michael
     
    mbaldwin, Mar 13, 2010 IP
  8. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #8
    I would go with Bind personally, never had much luck with DJBDNS.
     
    RHS-Chris, Mar 13, 2010 IP
  9. mbaldwin

    mbaldwin Active Member

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    95
    #9
    Hi.
    Installing Bind has seem to have done the trick. Not sure why it would have stopped working all of a sudden with DJBDNS, but it is fixed now it seems. Thanks for everyones assistance, I do really appreciate it.
    Michael
     
    mbaldwin, Mar 13, 2010 IP