Linux 5 machine .not able to ping it by its hostname

Posted on 2009-02-15
Last Modified: 2012-05-06
Not able to ping linux machine(RHEL 5) by its hostname. Its pinging by its IP.
Question by:sidharthBhargava
    LVL 48

    Expert Comment

    What machine are you pinging from?

    Is the hostname in DNS?

    Author Comment

    I am pinging it  from a windows machine. I didnt understand ur second question please explain
    LVL 48

    Expert Comment

    To be able to ping the hostname, it either has to be defined in DNS (Domain Name Service) or have a local hosts entry.

    Is this a public host or on a local LAN/Intranet?
    LVL 29

    Expert Comment

    @ Tintin is right, you need to setup a dns server to ping Internal pc as hosname.

    Either you can make linux SErver as Dns server and put all internal pc hostname  in zone file

    or make any windows Server as Dns server.

    have a look bellow one, for bind setup in linux [ check the zone file]

    LVL 8

    Accepted Solution

    You can also add the machine name and IP address to Window's host file.  This is in C:\WINDOWS\system32\drivers\etc\hosts.

    Author Closing Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now