LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-07-2004, 07:19 PM   #1
earcam
LQ Newbie
 
Registered: Aug 2004
Location: London
Distribution: suse, debian
Posts: 13

Rep: Reputation: 0
ping and apache work, but samba and NFS don't


Hi,

I recently bought a switch/router, and now have the machines sharing a broadband connection. Previously i had Apache, NFS and Samba working between two machines with a cross-over ethernet cable.
Now i can only access the Apache server with the IP address as the base of the URL. NFS and Samba clients can't seem to find hosts.

When looking on the router's DHCP Client Log the machines are listed with their hostnames and assigned IP addresses, eg:

Code:
ip=192.168.2.100   mac=00-E0-4C-FB-6F-51   name=badlands
ip=192.168.2.101   mac=08-00-46-06-07-46   name=vaio
The ping command works using the IP address of a machine but not it's hostname, eg:

Code:
badlands:/home/caspar # ping -c 5 192.168.2.101
PING 192.168.2.101 (192.168.2.101) 56(84) bytes of data.
64 bytes from 192.168.2.101: icmp_seq=1 ttl=64 time=0.203 ms
64 bytes from 192.168.2.101: icmp_seq=2 ttl=64 time=0.192 ms
64 bytes from 192.168.2.101: icmp_seq=3 ttl=64 time=0.203 ms
64 bytes from 192.168.2.101: icmp_seq=4 ttl=64 time=0.191 ms
64 bytes from 192.168.2.101: icmp_seq=5 ttl=64 time=0.190 ms

--- 192.168.2.101 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 0.190/0.195/0.203/0.018 ms
badlands:/home/caspar # ping -c 5 vaio
ping: unknown host vaio
I can access an Apache server on a Linux machine by entering the IP, but not the hostname. Having setup internet and file sharing between win XP/98 machines i'm assuming that the switch works OK and the win machines are OK from a file sharing (Samba) point of view.
smb.conf:
Code:
   interfaces = eth* lo
   hosts allow = 127.0.0.1 192.168.2.1/255.255.255.0
   hosts deny = 0.0.0.0/0
Neither samba or NFS work. When configuring an NFS client there are no NFS servers listed to chose from (yes, all are up and running).

I've tried this with the various firewalls turned off; SuseFirewall and the router's hardware one.

I'm new to networking and now completely stumped, as i'm not a SA type i don't know what logs to post here.
Think this some sort of hostname resolution problem, can anyone help, please?

Distro: suse 9.1
Router: SMC7004ABR
 
Old 11-08-2004, 10:50 AM   #2
TreeHugger
Member
 
Registered: Jul 2003
Location: London
Distribution: ubuntu, mint, debian
Posts: 112

Rep: Reputation: 15
well I aint no expert on this, but it seems to me like your machines don't know where to look up the names. Are you connecting to the internet ok? Is the DNS look-up working there? Presumably, since you posted. Since the DHCP server is the only server that knows the names of the other servers on your net, then presumably you should add the DHCP server (your router) as the first DNS entry. That's just what my logic tells me and I might be completely wrong. Good luck.
 
Old 11-08-2004, 11:17 AM   #3
earcam
LQ Newbie
 
Registered: Aug 2004
Location: London
Distribution: suse, debian
Posts: 13

Original Poster
Rep: Reputation: 0
Hi Treehugger,

Yeap the internet is accessible from all machines.

When looking at the router's DHCP client log it lists the IP addresses together with the hostnames (vaio and badlands).

You reckon i should set my router as the DNS server? That sounds about right, i'll have a play with that tonight, and post the result.

Thanks Treehugger
 
Old 11-08-2004, 08:23 PM   #4
earcam
LQ Newbie
 
Registered: Aug 2004
Location: London
Distribution: suse, debian
Posts: 13

Original Poster
Rep: Reputation: 0
Question still no joy - hostnames

Hi,

There was a DDNS (Dynamic DNS for Internet domains) setting that confused me a bit there. I was @ work when i sent that last mail - so i wasn't looking at the router config

But the router is set as the first (and only) name server for all machines, it seems to recognise these but doesn't broadcast them to other machines. Still no joy

The situation is this:

1. Internet works on all machines
2. Router's web config page lists dhcp assigned IPs with the machine's correct hostnames
2. ping works using IP of remote LAN or local machine (also resolves www.google.com etc)
3. ping reports unknown host when using LAN hostname, and uses loopback when local hostname
4. win networking OK, so i'm assuming it's not hardware/router issue.


Is there a that can point a networking know-nothing in the right direction

Ta
 
Old 11-10-2004, 05:04 AM   #5
TreeHugger
Member
 
Registered: Jul 2003
Location: London
Distribution: ubuntu, mint, debian
Posts: 112

Rep: Reputation: 15
dunno.

there must be a reason why the DDNS isn't working. I never set up a DNS and can't help you.

I just had a quick look in my O'Reilly 'Essential UNIX system admin' and couldn't really make head or tail of it.

If no jumps in now, I'd google on DDNS and DHCP.
 
Old 11-10-2004, 05:12 AM   #6
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Have you tried adding the systems to your /etc/hosts file? The when you look at the DHCP connections, it is showing the hostnames correctly, but I believe it does not do a DNS entry for them.
 
  


Reply



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
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Can NFS and Samba work together tonyr321 Linux - Networking 1 07-14-2005 08:54 PM
'ping -b' / ping <switch> doesn't work bmike1 Linux - Networking 2 01-10-2005 02:48 PM
can't ping Apache by ServerName semesm Linux - Newbie 1 05-13-2004 04:32 PM
troubleshooting nfs/can't ping local while firewall enabled toastermaker Linux - Newbie 18 11-28-2003 10:34 PM

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

All times are GMT -5. The time now is 11:51 AM.

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