LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-20-2004, 09:43 PM   #1
samus8zero2x
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
Can't ping inside network


I have had a network of 3+ PCs working for some time. Today, I tried to get the Linux box on my network (slackware 9.1) to register itself with the DHCP/DNS server so I could resolve it's name from windows XP. That now works fine, but I can't resolve any internal network names on the linux box now. The DHCP/DNS server is a Dlink wireless router...all machines are running off the wired portion of it and all machines can ping each other except for the linux box, which can be pinged, but cannot ping the other machines.

Another odd thing: Samba can figure out the name/IP just fine...I can mount Windows shares on the system by name. Also, I can resolve external names such as www.google.com. I can ping the individual internal IP addresses as well, just not resolve the names.

The pinging had worked fine until I messed with it today. I am also running the windows machines from a workgroup. Could changing the "search" parameter in resolv.conf fix this problem?

Thanks, everyone.
 
Old 09-20-2004, 09:51 PM   #2
dbkluck
Member
 
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Rep: Reputation: 15
linux resolves names on a local network using the /etc/hosts file (actually, windows does too, it's just so covered up by pussyfied gui crap no one ever sees it). to configure name resolution, just edit the file. there should already be a line like

127.0.0.1 localhost $Linux_Box's_Name

just add some other lines like

192.168.0.101 windowsbox1
192.168.0.102 windowsbox2
 
Old 09-20-2004, 09:54 PM   #3
dbkluck
Member
 
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Rep: Reputation: 15
oh, my bad, you're trying to use the dlink's dns, not /etc/hosts. hmm... i'd say if pointing the nameserver in /etc/resolv.conf to the ip of the dlink doesn't fix it, then the configuration issue is with the dlink and not linux.... but i'm not sure. my network is fairly small; i've never had to play too much with dns.
 
Old 09-20-2004, 09:55 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Are you trying to ping netbios names of those Windows boxes from the Linux machine?
Also I thought most of these soho routers can only function as a DNS proxy, not a full blown DNS server hosting a primary zone allowing dynamic updates etc, I could be wrong though.
 
Old 09-20-2004, 10:18 PM   #5
samus8zero2x
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Yes, the router has been performing quite well as the main DNS. My resolv.conf shows:

nameserver 192.168.1.1
search ok.cox.net

First line is my router IP (for DHCP/DNS), second is the suffix from the ISP. I was trying to see how ping works...does it use netbios names? Samba obviously still works and I suspect it is because it is using its own browse broadcast for workgroup mode.

Also, I know I can throw the entries in the hosts file, but I'd rather not since I tend to have people's laptop's on the wireless and I would want to access them on the fly.

One thing might be rebooting the router, but that will have to wait since I need the outbound connection at the moment. I've already rebooted the linux box a few times. At least I can still resolve its name through Windows ;-).


Another tidbit: It also doesn't work if I try to do a command line telnet from the linux box to one of the windows machines. I suspect it is because it is trying to resolve by the same method ping does.

Last edited by samus8zero2x; 09-20-2004 at 10:20 PM.
 
Old 09-20-2004, 10:28 PM   #6
samus8zero2x
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
In answer to the other question, I believe I am trying to ping the netbios names of the windows machines from the linux box. Not 100%, but that seems correct. I can't understand why it had worked before and why now it doesn't.

If it helps, the linux machine used to be connected to a windows domain. I since made a home network (workgroup) and just hooked the linux box to it without changing anything. It had been like that for about 3 weeks. I tried to change the hostname on the linux box this afternoon and that is when I started having the problems. I had also changed the name of my main windows machine a few days ago and the linux machine was able to resolve its name ok then, too.

Last edited by samus8zero2x; 09-20-2004 at 10:29 PM.
 
Old 09-20-2004, 11:03 PM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Then the question is simple, do you see correct records for all your boxes in the DNS zone on your router?
These Windows boxes by default will be able to find each other and the Linux box(which is running nmbd ) with or without DNS because they try to find netbios names by broadcast(or wins server if one's present) first.
Linux by default only uses /etc/hosts and DNS

in fact do a "dig <FQDN of the Windows box>" and see if it returns host records.
 
Old 09-21-2004, 09:58 AM   #8
samus8zero2x
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 6556
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;XXXX.ok.cox.net. IN A

;; AUTHORITY SECTION:
ok.cox.net. 10609 IN SOA ok.cox.net. hostmaster.cox.net. 2004090801 28800 7200 604800 86400

;; Query time: 640 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Wed Sep 22 08:51:30 2004
;; MSG SIZE rcvd: 85


What is this telling me (XXXX is the Windows hostname)? It is obviously going all the way out to the ISP to authenticate. Again, it tells me there is a non-existent domain. Before I messed with the linux setup, the windows machines could not resolve the Linux machine. Also, in the DNS table, "unknown" was listed for the Linux box's IP address until I made the changes (now it shows the hostname).
 
Old 09-21-2004, 10:26 AM   #9
samus8zero2x
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Is there a way to hange the search line to look at the local network instead of going out to the ISP?
 
Old 09-21-2004, 10:31 AM   #10
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
ok if your FQDN is XXXX.ok.cox.net(ie assigned by your ISP)
obviously you don't own and cannot control anything on ok.cox.net, its owned by your ISP, and your ISP assigns you the FQDN and ip address.
Does all your clients use real IPs assgined by the ISP's DHCP or private IP's assigned by your router?

In fact forget all this DNS crap
go to you /etc/samba/smb.conf and set "wins support = yes" (create if it does not already exist)
open up /etc/nsswitch.conf and add "wins" inbetween "files" and "dns" for hosts:
then configure these windows boxes to use it as the wins server.

If you insist on using DNS dynamic updates, tell me the model of your wireless ap/router

Last edited by Demonbane; 09-21-2004 at 10:34 AM.
 
Old 09-21-2004, 10:50 AM   #11
samus8zero2x
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
All machines on the inside use IPs assigned by the router. Alright...you want me to use WINS, which is ok, but is there a way to make linux broadcast as windows does to resolve the netbios names? Seems like you should be able to make it do the same thing Windows does by default, rather than modify all of you Windows clients. I mean, why use WINS when all of the windows machines can already see the linux box? I would just add the addresses manually to the hosts file rather than going to the trouble of setting the linux box as a WINS server.

The router is a Dlink DI-524. From what I see, it is using its own IP address for DNS, but it is just forwarding the requests to the ISP. I haven't found anyway to control the tables directly, so I assume DNS, persay, is a lost hope. I would like to see if I could get the linux box to authenticate like the windows boxes are, as I mentioned above, since I don't think I can specify a WINS server on the router to be handed out to the clients (which means manually changing the settings of any machine that connects to the network).

Last edited by samus8zero2x; 09-21-2004 at 10:53 AM.
 
Old 09-21-2004, 11:18 AM   #12
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
In that case no, what you're trying to do previously with the router's DNS won't work, since all it does is forward DNS requests to the ISP's DNS Server.
Quote:
but is there a way to make linux broadcast as windows does to resolve the netbios names? Seems like you should be able to make it do the same thing Windows does by default, rather than modify all of you Windows clients.
To be honest with you I have been wondering about the same question myself, I'm sure it's possible to write a module that can do it. But seems netbios/wins etc is more or less Microsoft propriety stuff and Linux likes to use open standards such as DNS.
Maybe the libnss_wins module also does broadcasts, I'm not exactly sure, give it a try.

I have looked at the DI-524 manual and you're right, there isnt any other DHCP settings besides the IP range.

Last edited by Demonbane; 09-21-2004 at 11:25 AM.
 
  


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
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 01:55 PM
Connection to external hostname from outside ok but rejected from inside network Dalvinio Linux - Networking 0 03-11-2005 07:51 PM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 10:18 AM
Linksys WAP54G Inside the network? cupboardguy Linux - Wireless Networking 1 02-24-2004 02:19 PM
Finding The Shared Printers Inside A Network johnapril28 Linux - Networking 0 10-03-2003 02:07 AM

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

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