Skip to comments.How do I fix my ?DNS? network problem?
Posted on 09/16/2006 9:01:46 AM PDT by rudy45
I have been trying to print to a network printer, without success. Some more findings: - My computer is one of four on network (one ethernet attached, three wireless attached). My ip address is 192.168.0.101. - I can both ping and do a net view of another computer, 192.168.0.102. It gives me all the information I'm supposed to get - HOwever, I cannot ping or net view that same computer by referring to its computer name. The ping fails, and the net view gives me system error 53.
I think I have a problem with DNS? Isn't the DNS supposed to translate between computer name and IP address? How can I confirm that I have a DNS problem and how do I fix it? The computers all run XP Home with SP2.
How do I ensure that I have NETBIOS running on TCP/IP? I believe that also may be a factor. Thanks.
It's a DNS issue. One easy fix is to add the hostname/IP to /etc/hosts. (Or wherever your OS puts that file.)
Make sure /etc/nsswitch.conf hosts entry reads something like "files DNS NIS". (Or wherever your OS puts that file.)
Control Panel,Network Coneections, Right-click your network connection, scroll to prperties... highlight TCP/IP, click on properties, DNS tab, and manually add your DNS IP example 192.168.0.1.
ok out of all that an try your connection again.
Thanks, but shouldn't Windows be smart enough to set up the DNS for me? Is there some configuration utility that will populate the DNS automatically with what's supposed to be there? Thanks.
Let's not go there.
> Thanks, but shouldn't Windows be smart enough to set up the DNS for me?
Yes, it should. It doesn't always work, except for other computers running Windows. Funny that it just happens to have a problem with non-Microsoft stuff.
I've had the same issue with computers running Linux and just had to give them fixed addresses such as 192.168.0.10 and put a line in windows/system32/drivers/etc/hosts to give them a name.
OK, under "Advanced TCPIP settings" I see a tab for DNS. However, the screen on which I add entries asks only for an IP address. It doesn't ask for a computer name. I thought the DNS was supposed translate between the two. I can add the IP address for the computer that has the printer I want to use. However, how do I tell DNS that this IP address is associated with "kitchen_computer"?
I tried putting in the IP address of the other computer in my home network, into the DNS. Whan i did, I promptly lost access to Free Republic. So I took it out.
The issue I have with not with the Internet itself. It's with another computer in my local network. Thanks.
yeah, you have to do it on the computer that is giving you the problem. sometimes you have to manually add the DNS IP on a windows network.
try this on the computer in question, open up a command window(Start, Run... and type: cmd, click OK) and type: ipconfig /flushdns then hit Enter
Thanks, I want to make sure I'm clear.
My laptop (call it DELL_COMPUTER, IP 192.168.0.102) wants to print to a printer CANONMP5 attached to KITCHEN, IP 192.168.0.100). I can ping 0.100, I can net view 0.100.
Where is the translation between 0.100 and KITCHEN supposed to be occurring? Does each computer have its own DNS? Where should I try the flushdns command?
Also, for the heck of it, I went into command prompt on DELL_COMPUTER and did a NET USE of CANONMP5 on KITCHEN, and it worked. However, I'm not seeing the printer from any Windows application print selection drop down. Should I be? Thanks.
With an address starting with 192.168 you are on a local network, probably behind a firewall, so there really isn't a DNS translation happening. 192.168 addresses are non-routable - they never leave your building. It is going to depend on what kind of switch or gateway you are using. I suggest you start with it's manual.
Yes, I'm on a local network. The question remains: how does the network know that 192.168.0.100 is "KITCHEN"? There has to be translation going on somewhere, I would think. It's a DLINK 614+ router. Thanks.
What operating system version are you using?
Windows machines use NetBios for name resloution with other local windows machines.
Ensure all your computers are running NetBios over TCP/IP.
If that still does not help you may need to manually add entries to your system32\drivers\etc\hosts file.
XP Home, with SP2
Neither computer had NETBIOS over TCPIP enabled. I did so just now. Should that change be reflected automatically, or should I restart both computers? Windows didn't say I had to restart, but maybe I should?
You probably do not need to restart.
open a command prompt and type: nbtstat -RR
That will register and refresh your NetBios WINS name cache.
Then type nbtstat -n to list the names that WINS knows about.
Also, make sure all your systems are in the same workgroup.
Based on those IPs I assume you are on wireless?
It's a Dlink 614+.
I looked in the router configuration screens at DHCP, and find a dynamic DHCP client list. It contains the names of all the computers, plus their local 192.168 etc. IP address.
The thing that's still aggravating is that that table DOES recognize that "KITCHEN" is 192.168.0.100. Yes, KITCHEN has the printer I'm trying to print to, and it's USB connected.
Do you think my computer is having trouble reading the dynamic DHCP client list? I can ping 192.168.0.100 but I can't ping KITCHEN. Or, is my computer looking at some other table than DHCP client list, and that other table is messed up?
Thanks, I ran nbtstat -rr, followed by nbtstat -n. I see only the name of MY computer (the one I'm using to access the printer on the remote system) and the name of the network. I see no references to any of the other computers.
The computer I myself am using (in order to print from the kitchen computer) has a blank field associated with "DNS Suffix for this connection." The box "Use this connection's DNS suffix in DNS registration" is unchecked.
What should my suffix settings be?
Yes, thanks. I have defined the printer attached to the KITCHEN PC. It's set to share. THe problem is that when I try to browse for this kitchen PC, to attach it to my laptop, I don't see it when I do the add network printer wizard. I see KITCHEN, but when I double click on it to drill down, nothing happens, ie. it doesn't expand to a list of printers attached to KITCHEN.
Then if you see Kitchen, I suspect the setup problem is on Kitchen. I don't have an XP machine handy to bring up the various config options, but it seems likely that Kitchen is preventing the sharing somehow. I know in Windows 98 you had to have "client for microsoft networks" and "microsoft family logon" enabled in the network config panel accessed from control panel (add them to the stack). There was also a "file and print sharing" button on the network config panel. Double check to make sure sharing is enabled on Kitchen in both the network and printer setups. Also make sure kitchen's firewall is down while you test this out. The DI-614+ is handling the primary firewall duties for you anyway. That's about as far as I can get you. Good luck.
Make sure the serving computer has "File and Printer sharing for Microsoft Windows" installed.
Double-check the workgroups of each computer. They must be in the same workgroup to share files/printers.
You might also need a user account on the serving computer with the same username and password as the computer you are trying to access the printer from.
Here's what I get from the system:
KITCHEN <00> UNIQUE Registered
HOME_NET <00> GROUP Registered
KITCHEN <20> UNIQUE Registered
It seems that Netbios DOES know to associate KITCHEN with 192.168.0.100? But still I can neither ping KITCHEN, nor do a NET VIEW. Thanks.
You don't have a DNS problem, because you don't have DNS on your home network. The only way you'll resolve anything by name is by broadcast. Period. You could, if you wanted to, edit the text files in c:\windows\system32\drivers\etc\hosts and lmhosts. You would type in IP addresses and names for all the computers on your home network.
thanks so much everyone. I fixed it. Here's what I had to do:
- add to the hosts file a line for each "local" ip address and associated host name
- add [workgroup name].NET as a domain name suffix
All these problems arose because of a switch in routers, from DLink 614+ to a Belkin Wireless G (because the latter supports 802.11g and WPA, and the former supports only WEP). Remote printing was working fine under the DLink, then stopped once I replaced it with the Belkin.
I thought the problems would disappear if I re-installed the DLink, but the problems remained. What's puzzling is that I didn't have to do all this stuff when I first put in the DLink. Is it possible that switching the router (which uses a different local address scheme, 192.168.2.1 instead of 192.168.0.1) could have clobbered the DNS suffix and hosts file (which maybe Windows DID put in automatically the first time I set up the network?)?
One final question: does an Apple MacBook have an counterpart for the hosts file. Also, will I have to tell it the domain name suffix? If so, where and how?
I didn't want to admit it, but I had the very same problem.
I didn't have time to mess with it so I just transfer files to the main computer and print from there.
Thanks for getting back to us.
Mac OS X has that file at - /etc/hosts
You could add entries like -
- with a tab between the host name and the IP address.
I generally use the "vi" tool in terminal for editing files like 'host', but you may prefer to use a free editor like Text Wrangler instead.
Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.