I got error while stargting httpd services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kirank
    New Member
    • Apr 2015
    • 1

    I got error while stargting httpd services

    When I tried to start httpd services, I got this

    # service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: [Sat Apr 25 15:41:36 2015] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.1.0 (check DNS) -- or specify an explicit ServerName



    I have done in the past many times but never had any issue.

    Thanks
    k
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    to my limited knowledge of TCP/IP, the address should not end in a '0' (zero)

    Comment

    • zmbd
      Recognized Expert Moderator Expert
      • Mar 2012
      • 5501

      #3
      Luuk,
      Although not common practice to end in a zero, it can be done depending on how the network mask is set.

      With that said, Kirank, you need to check your networking mask and see what is up. Typically the first and last address in a range are used by the network for housekeeping tasks and are not usually assigned to a client.

      Wiki isn't my first goto for things however, for information like this: Wiki-IPv4 - ending in 0 or 255

      Comment

      • RonB
        Recognized Expert Contributor
        • Jun 2009
        • 589

        #4
        It's unlikely you're doing any subnetting, so it appears that you simply put the wrong IP address in your httpd.conf file for the ServerName value.

        192.168.1.0 is a network address, not a host address. You need to use the IP address of your web server.
        Last edited by RonB; Apr 26 '15, 04:53 PM.

        Comment

        Working...