LinuxQuestions.org
Review your favorite Linux distribution.
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-10-2006, 01:43 AM   #1
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Rep: Reputation: 30
DNS? Trouble


Hi guys,
Im running zenwalk and have installed samba, and i am trying to get it working.

I dont think the problem i have is with samba though, as i cant ping the windows box by hostname
and it cant ping me, but they can both ping each other by ip.
I also have another windows box, and both windows boxes can ping each other by hostname.

But the linux box does show up if i view workgroup computers in windows, i just cant access it.

Anyone got any ideas?

Thanks
Kane
 
Old 11-10-2006, 03:13 AM   #2
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
edit the /etc/hosts file. By default linux can't understand windows hosts name automatically. You can achieve this mission easily by map windows host name in /etc/hosts.
Example

192.168.0.123 windows1 windows1.yourdomain (opitional)
 
Old 11-10-2006, 10:58 AM   #3
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
hi, thanks for that

i put 192.168.1.5 pepsin pepsin.workgroup (not sure if the last bit should be like that) and i can now ping that computer.
but i still cant ping my linux machine from either windows machine using the hostname (kane) even though i can ping by ip.

however ive also noticed when i type hostname it comes up with 192.168.1.5 why would this be? even after i remove ^ that line from /etc/hosts it still shows it (even though my ip is 192.168.1.4)
 
Old 11-10-2006, 11:10 AM   #4
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Rep: Reputation: 17
Quote:
Originally Posted by Kane2002
hi, thanks for that

i put 192.168.1.5 pepsin pepsin.workgroup (not sure if the last bit should be like that) and i can now ping that computer.
but i still cant ping my linux machine from either windows machine using the hostname (kane) even though i can ping by ip.

however ive also noticed when i type hostname it comes up with 192.168.1.5 why would this be? even after i remove ^ that line from /etc/hosts it still shows it (even though my ip is 192.168.1.4)
Reply

Hi,

Have you setup a workgroup for your windows machines and included the linux box as part of the workgroup. ie all ip adds belong to workgroup=playzone.
 
Old 11-10-2006, 11:17 AM   #5
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
all windows machines are set to the default workgroup (workgroup)
but how do i set my linux box as part of that workgroup?
im guessing it is set as that already as when i view workgroup computers in winXP it shows up in "workgroup"

my /etc/hosts is as follows:
Quote:
# For loopbacking.
127.0.0.1 localhost
192.168.1.4 kane.workgroup kane
# Scott
192.168.1.5 pepsin.workgroup pepsin
where the 192.168.1.4 is it was originally 127.0.0.1 but that didnt seem to make any difference.

EDIT: Do i need to set up a wins server with samba? (dont know what one is but i found another post that had the same kind of problems)http://www.linuxquestions.org/questi...582#post175582

Last edited by Kane2002; 11-10-2006 at 11:30 AM.
 
Old 11-10-2006, 11:36 AM   #6
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Rep: Reputation: 17
Hi,

On your windows platforms, ensure that they all have the same workgroup name, ie playzone and the all belong to the same subnet ie 192.168.30.x.(including linux platform).

Windows platforms
Ensure that the same workgroup name is used in, right mouse click my computer, select properties, select computer name, change workgroup name.

I hope this helps.



Quote:
Originally Posted by Kane2002
all windows machines are set to the default workgroup (workgroup)
but how do i set my linux box as part of that workgroup?
im guessing it is set as that already as when i view workgroup computers in winXP it shows up in "workgroup"

my /etc/hosts is as follows:

where the 192.168.1.4 is it was originally 127.0.0.1 but that didnt seem to make any difference.
 
Old 11-10-2006, 11:40 AM   #7
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
yes they are all on the same subnet and workgroup (the workgroup is the default WORKGROUP) and they are all on the 192.168.1.xxx subnet.
 
Old 11-12-2006, 06:29 PM   #8
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Sometimes the netbios need quite long time to response, if you know the hostname the fastest way you can reach the linux pc is:-
edit c:\windows\system32\drivers\etc\hosts and add in all pc's ip and name (same format as linux pc)

next time simply type \\linux then it will reach your linux pc

Definitely, make sure your samba and firewall is configure probably.
ks
 
Old 06-08-2007, 04:33 PM   #9
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Samba is password dependent. Double check the password files that appear in all the files concerned. Also Linux needs to be included, so Samba can negotiate the connections. Suggestion: the same name or nomenclature is necessary between both the Linux and the M$Windows boxes. The slightest deviation will cause the incomplete negotiation to occur.
 
  


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
DHCP / DNS Trouble gkurts Linux - Networking 3 06-29-2009 04:37 AM
dns trouble isales Linux - Networking 6 10-22-2004 02:31 AM
Trouble with DNS technician Linux - Networking 17 08-02-2004 03:46 PM
DNS trouble pmh6310 Linux - Newbie 2 06-12-2003 12:13 PM
DNS trouble MojoLuv Linux - Networking 2 05-06-2003 08:17 PM

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

All times are GMT -5. The time now is 05:09 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