LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 08-22-2003, 11:38 AM   #1
gillesdutertre
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Can ping by IP but not by hostname


Hi,
I'm a newbie in Unix. I have a unix server (RedHat 7.3) on the same network than some windows machines. I want to share some files from this server, so trying to configure Samba.
After running Samba, I can see my machine on the network but when i double click on it, a message says that the machine cannot be found.

I also tried to ping the server from a windows client. A ping with the IP address is ok, but not with the hostname.

The ifconfig results seem ok.
The hostname command returns the good name.

Can anyone help me?
 
Old 08-22-2003, 12:15 PM   #2
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
i haven't any experience w/ samba, but i know that if you can't ping the internet by hostname (not IP), it's a DNS issue. make sure you have your DNS server IPs set on the windows computer.

btw, what do you mean by server? are you serving webpages? and isn't RedHat linux and not unix (just being a bitch about jargon )?

what is your network setup? the position of the linux box serving webpages is important for determining why you can't ping the domain name.
 
Old 08-23-2003, 01:25 AM   #3
electron_lemon
LQ Newbie
 
Registered: Aug 2003
Location: Chicago
Distribution: Mandrake
Posts: 18

Rep: Reputation: 0
> ... by hostname (not IP), it's a DNS issue. ...

I think the poster means the Samba hostname, not a FQDN DNS name.

I would suggest double-checking all the settings on your Samba server and making sure that it knows that it's the master server (I'm not sure exactly what the setting's called), because once it knows, It'll send out broadcast pakets letting the windows machines know that they should ask your Samba server.

Alternatively, I think there's a way to manually tell the windows machines what the master server is, but I'm not going to explain how, because I don't know myself.

If the samba server's configuration files are too confising, there's a really good Webmin module for configuring Samba servers. I'm sure it'll be very helpful to newbies. Check it out.

Last edited by electron_lemon; 08-23-2003 at 01:44 AM.
 
Old 08-23-2003, 10:45 AM   #4
gillesdutertre
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Well,

I say my RedHat computer is a server cause i use it as a file server only. I don't think i need a DNS cause it's only used in my local network, the windows computer only connect to internet and the DNS is correctly configured.

I know this can work without configuring any DNS server in my Linux machine. The only thing I need is to be able to connect from a window computer to this file server.
 
Old 08-23-2003, 11:23 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
I am sure you must have a WINS server somewhere on your windows network.

you can set samba to access thsi Wins server by editing the

WINS address =

tag in /etc/samba/smb.conf.

This will however not help you do a ping using the netbios name.
But if you do a

smbmount //pcname/share

the pcname will be resolved to the correct ipaddress.

you can check this out using the nmblookup utility.

Last edited by ppuru; 08-23-2003 at 11:25 AM.
 
Old 08-23-2003, 11:47 AM   #6
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
I think the problem is that you don't have de "nmbd" daemon running. In red hat you can check it by typing 'service smb status' you should see both daemons running (smbd and nmbd).
 
Old 08-25-2003, 02:18 AM   #7
gillesdutertre
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I already checked that

When i do nmblookup <hostname>, it gives me the good IP address
 
Old 08-25-2003, 02:20 PM   #8
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
OK. Take a look at this:

http://www.computing.net/linux/wwwbo...rum/22214.html

 
Old 09-01-2003, 07:59 AM   #9
gillesdutertre
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Well,

First, sorry for answering that late, I've been quite busy last week.
I want to thank all those who answered to this post cause now it works perfectly. I had several problems to be resolved. As newbie, i didn't know what rpm to install for samba, and only did half of the job, but i also had a firewall configuration problem...

Now everything's fixed and works.

Thanx
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE can't ping by hostname jschwartzman Linux - Networking 10 03-14-2005 03:29 PM
can't ping the server itself by ip or hostname h_h_q Linux - General 1 01-12-2005 01:24 AM
Ping or SSh by hostname ElectroLinux Linux - Newbie 2 10-26-2004 03:21 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
can ping by IP but not by hostname al contado Linux - Networking 6 03-16-2003 03:06 AM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration