• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 831
  • Last Modified:

Linux ping with computer name

hi to all,
i have a centos - linux computer. i can ping it from another windows computer with ip but i can't ping it with name. i've set host name but the problem still go on.
what can i do?

2 Solutions
It sounds like you don't have a DNS entry for this machine on whatever DNS server your Windows machine is using. You need DNS setup in order to resolve the name to the IP.

Is this at your home? You are likely using the DNS of your ISP, in which case you won't be able to control it.

You could add an entry into your windows hosts file to manually control the resolution of the name.
The host file is located in C:\windows\system32\drivers\etc, and is just a file called hosts. Open this up inside notepad, and at the bottom of the file you can add the IP and hostname of the centOS machine that you want to resolve on your windows machine.
erenpasaAuthor Commented:
hi sadburger,
the machine will be server. hosts file solution not enough for me. because alot of machine in my network. here is a company. i can ping windows os with computer name.there is problem just the linux.
What are you using for DNS on your machines? Do you have control of the DNS server?
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hugh FraserConsultantCommented:
Are you using a static address for this server, or DHCP? If you're using DHCP, it may be that you need to include in the lease request a suggestion for the name of your machine. Try to do a lookup of the address to see what name gets returned.
You're probably looking to install and configure Samba

Morne LateganCommented:
Yip, samba will make the name available if you don't have dns.

Windows hosts have CIFS networking by default, and register themselves on the network through DNS in an active direcrory setup, wins in a domain setup, or netbios in a workgroup setup. That is why machines know the names of other machines on the network even without DNS.

In order for Linux to behave the same, you need CIFS networking on Linux, which is provided by samba.
erenpasaAuthor Commented:
i give 450 points to tillgeffken because he answered first.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now