Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-20-2004, 09:43 PM
|
#1
|
LQ Newbie
Registered: Feb 2004
Distribution: Gentoo
Posts: 18
Rep:
|
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.
|
|
|
09-20-2004, 09:51 PM
|
#2
|
Member
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78
Rep:
|
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
|
|
|
09-20-2004, 09:54 PM
|
#3
|
Member
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78
Rep:
|
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.
|
|
|
09-20-2004, 09:55 PM
|
#4
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
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.
|
|
|
09-20-2004, 10:18 PM
|
#5
|
LQ Newbie
Registered: Feb 2004
Distribution: Gentoo
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
09-20-2004, 10:28 PM
|
#6
|
LQ Newbie
Registered: Feb 2004
Distribution: Gentoo
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
09-20-2004, 11:03 PM
|
#7
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
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.
|
|
|
09-21-2004, 09:58 AM
|
#8
|
LQ Newbie
Registered: Feb 2004
Distribution: Gentoo
Posts: 18
Original Poster
Rep:
|
;; 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).
|
|
|
09-21-2004, 10:26 AM
|
#9
|
LQ Newbie
Registered: Feb 2004
Distribution: Gentoo
Posts: 18
Original Poster
Rep:
|
Is there a way to hange the search line to look at the local network instead of going out to the ISP?
|
|
|
09-21-2004, 10:31 AM
|
#10
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
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.
|
|
|
09-21-2004, 10:50 AM
|
#11
|
LQ Newbie
Registered: Feb 2004
Distribution: Gentoo
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
09-21-2004, 11:18 AM
|
#12
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|