• 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?

0
erenpasa
Asked:
erenpasa
2 Solutions
 
sadburgerCommented:
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.
0
 
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.
0
 
sadburgerCommented:
What are you using for DNS on your machines? Do you have control of the DNS server?
0
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.
0
 
tillgeffkenCommented:
You're probably looking to install and configure Samba

http://www.2000trainers.com/linux/samba-linux-netbios/
0
 
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.
0
 
erenpasaAuthor Commented:
i give 450 points to tillgeffken because he answered first.
0
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