LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2016, 07:01 AM   #1
JediWombat
LQ Newbie
 
Registered: Sep 2014
Location: Brisbane, Australia
Distribution: CentOS/Debian
Posts: 1

Rep: Reputation: Disabled
CentOS 6.5 server not pingable by hostname


Hi all,

I'm currently in the process of setting up my CentOS 6.5 server to replace my Debian 7.5 server (I attempted to use something no Redhat-derived, and didn't like it).

Anyway, my Debian server is pingable by hostname from the Windows clients on my network:

Code:
C:\Users\Jedi>ping novak
Pinging novak [192.168.0.10] with 32 bytes of data:
Reply from 192.168.0.10: bytes=32 time=2ms TTL=64
Reply from 192.168.0.10: bytes=32 time=1ms TTL=64
But, my CentOS server is not:
Code:
C:\Users\Jedi>ping groth
Ping request could not find host groth. Please check the name and try again.
I know this should be handled by DNS somewhere, but the only thing that should be running that is my router, where DHCP is configured, but I've not touched any DNS settings. I don't have Novak set up in the hosts file on my Windows clients or anything, either. To be extra sure of this, I tested the pings from my Media PC in the lounge, and it can ping the Debian box by hostname as well. Interestingly, from my CentOS 6.7 client, neither hostname is pingable!

Given that this worked "out of the box" with Debian, is there something I'm missing to make the CentOS box "advertise" its hostname to the network?

I'm considering just setting up BIND on the CentOS server, and configuring everything by hand, but first I'd like to know why this works Windows>Debian without me doing anything, but doesn't work Windows>CentOS, and doesn't work CentOS>CentOS or CentOS>Debian.

Any ideas, from anyone?

Cheers,
Benjamin.
 
Old 02-28-2016, 09:24 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,923

Rep: Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999Reputation: 5999
Welcome to LinuxQuestions.

Is samba running on the CentOS box? If so make sure that both services nmbd and smbd are running. Also make sure that the firewall if running allows SMB/CIFS traffic. Can you see the CentOS server in windows networking?

Basically, samba (SMB/CIFS) name resolution to IP address is accomplished by broadcasting (UDP) the netbios name. Make sure the CentOS hostname is not localhost or more then 15 characters. Otherwise you can assign a samba netbios name via the netbios name directive in the smb.conf file.

linux by default can not resolve netbios names to IP address by default without some sort of help. Running a DNS is one solution. With distributions that install avahi you should be able ping either linux box by adding local to the host name i.e. ping hostname.local.

Another way is to change the nsswitch.conf file.
hosts: files dns wins
 
Old 02-29-2016, 07:26 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,048

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Guess you could make a hosts file entry on other machines and make these static.

Ping isn't really a very good test.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Win7 & CentOS can't reach server by hostname pingu Linux - Networking 4 09-06-2013 02:11 AM
remotely reboot a server which is not pingable vickyjovial Linux - Networking 12 06-07-2012 06:16 AM
server PINGABLE but no SSH aggrishabh Linux - Networking 1 03-06-2011 11:12 PM
change hostname of LINUX CentOS 5 while running informix server ytd Linux - General 5 08-11-2009 01:04 AM
Pingable server after panic nhaunold Linux - Enterprise 2 04-03-2007 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration