Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know this is already asked but I can't find a clear answer. I put a new Ubuntu server in my LAN and I can't ping it but the hostname. I don't want to edit all my LAN windows hosts's file (+40 pcs) and add the entry. Perhaps I have another Ubuntu server and I can ping it by hostname without change anything.

All servers and client are using another internal DNS server based on an old redhat installation.

The hostname in the server that I can't ping is setted. What I have to do/check?

share|improve this question
add comment

3 Answers

up vote 5 down vote accepted

You've got two options, of which you can do either or both:

  • Install Samba (apt-get install samba) and activate the nmbd component, this will make the Ubuntu server answer broadcast NetBIOS name requests from Windows clients without further configuration.

  • Add a record to your DNS server. You mentioned the DNS server is RedHat EL 4 so will quite likely be running ISC Bind. The configuration is in /etc/named and RedHat compatible manuals are still available here: http://www.centos.org/docs/4/html/rhel-rg-en-4/ch-bind.html

Edit: The second of these is preferable, you shouldn't rely on NetBIOS to do name resolution for you.

share|improve this answer
    
Thanks I'll give it a try. I think the difference between the 2 ubuntu servers is that the pingable one has samba installed (!) the other one nope. You win! –  Kreker May 16 '12 at 9:32
    
sorry, can you help me how to add a entry in the named file? I don't figure out how to add only one simple lan ip with the hostname:\ –  Kreker May 16 '12 at 12:16
add comment

Add an entry into DNS on your domain controller in forward lookup zones for the Ubuntu machine, this is what I normally do.

share|improve this answer
1  
how to do that? The DNS server is on red hat 4 I think –  Kreker May 16 '12 at 8:58
add comment

hostname.local should work, and if not, refer to Ubuntu Zeroconf guide.

share|improve this answer
    
tried. didn't work:(. I'm pinging from windows machine –  Kreker May 16 '12 at 8:46
    
So the avahi-daemon is running but it's the same? –  Sašo May 16 '12 at 8:51
    
no avahi daemon is running on any servers –  Kreker May 16 '12 at 9:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.