GizmoB73
Posts: 80
Joined: Fri Jan 27, 2012 12:51 pm

Re: Name resolution problem.

Tue May 01, 2012 7:14 pm

I am trying to move my Pi over to a headless configuration where I will use PuTTY on a Windows 7 laptop to ssh, or VNC into it.

I am currently using the latest Debian distro and I am running it wirelessly using wicd and DHCP.

I can access the Pi via it's IP address from PuTTY that's no problem, but I cannot seem to resolve the Pi's host name of "raspberrypi" from Windows.  Even if I try a simple Ping from Windows, it will work with the IP address but not the host name.

I could try setting a static IP address on the Pi, or even reserving a specific IP address on the DHCP server in my router, but I would really like it to work from the Pi.

I am guessing there is some configuration missing somewhere, but my Linux is not too strong yet.

Anybody know what is needed please?

User avatar
jbeale
Posts: 3500
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Name resolution problem.

Tue May 01, 2012 8:08 pm

I"m no expert on the "hosts file" but this may be helpful:

http://en.wikipedia.org/wiki/H.....%28file%29

If you want a Windows machine to recognize your Pi on your local area network by name, it needs somewhere local to find that name, instead of using some external DNS (domain name server) elsewhere on the network that won't know anything about your local system. On Unix/Linux systems it is a "hosts" file, often in /etc/hosts and in Windows XP it might be C:/WINDOWS/system32/drivers/etc/hosts

...and by the way if you have a working wireless configuration (USB WiFi adaptor?), I think several people would be curious about all the details on that; it seems to be tricky to get that working.

GizmoB73
Posts: 80
Joined: Fri Jan 27, 2012 12:51 pm

Re: Name resolution problem.

Tue May 01, 2012 8:39 pm

The trouble with the hosts file is that you have to specify a static ip address with which to associate that name.  I am using DHCP so the IP address could easily change and the host file would be wrong.

I have tried installing winbind, but I think that may need some additional configuration before it will work.  What that is I don't know yet.

As for wifi, yes I have it working.  I have posted about it on element14 and also on here I think (I have slept since then).  I am using the ZyXEL adapter, which is quite power hungry but seems to work, although only when in the Pi itself.  It won't run from a powered hub strangely, so it has its drawbacks.  Installation was quite simple once I had the power issues resolved and I was running in the Pi directly.  If people want, I could always post some instructions in a thread here, but it is mostly what is out there already.

User avatar
jbeale
Posts: 3500
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Name resolution problem.

Tue May 01, 2012 8:52 pm

Combining your report with those from as Boreatton Scouts, and fulburncams in the thread below, it looks like we have yet to see any reports of any WiFi adaptor working through a powered USB hub; only direct mounted on the Pi itself.  Interesting.

http://www.raspberrypi.org/for.....r-hub-wifi

EDIT: ok, based on the two links below, looks like the Pi has a USB software problem which has not yet been completely resolved (as of April 30)

http://www.raspberrypi.org/for.....acket-loss
https://github.com/raspberrypi/firmware/issues/9

GizmoB73
Posts: 80
Joined: Fri Jan 27, 2012 12:51 pm

Re: Name resolution problem.

Wed May 02, 2012 8:07 am

Reading through that thread on Github, it would seem to suggest that a kernel patch may have fixed the USB issue now.  Don't know I get that onto my debian image to test though.

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Name resolution problem.

Wed May 02, 2012 8:41 am

For the Windows name binding issue, you may find some information at this link

http://www.raspberrypi.org/for.....-browsable

GizmoB73
Posts: 80
Joined: Fri Jan 27, 2012 12:51 pm

Re: Name resolution problem.

Thu May 03, 2012 9:01 am

bredman said:


For the Windows name binding issue, you may find some information at this link

http://www.raspberrypi.org/for.....-browsable



Thanks bredman, I had seen that but as I only needed name resolution that looked a bit overkill.  Anyway I tried it out and it did the job.

Unfortunately my Wi-Fi has now died, so I need to re-visit that again.

Thanks

GizmoB73
Posts: 80
Joined: Fri Jan 27, 2012 12:51 pm

Re: Name resolution problem.

Thu May 03, 2012 9:08 am

jbeale said:


Combining your report with those from as Boreatton Scouts, and fulburncams in the thread below, it looks like we have yet to see any reports of any WiFi adaptor working through a powered USB hub; only direct mounted on the Pi itself.  Interesting.

http://www.raspberrypi.org/for.....r-hub-wifi

EDIT: ok, based on the two links below, looks like the Pi has a USB software problem which has not yet been completely resolved (as of April 30)

http://www.raspberrypi.org/for.....acket-loss
https://github.com/raspberrypi/firmware/issues/9



After getting name resolution working with SAMBA my Wi-Fi failed.  I have since installed the rpi-updater from Hexxeh and installed the pre-compiled 8192cu.ko driver and I now have my EdiMAX EW-7811Un working from my powered hub!  The adapter seems stable but now I am having issues with wicd, but that's another story (and probably another thread soon).

s4v4g3
Posts: 3
Joined: Fri Jan 13, 2012 2:47 am

Re: Name resolution problem.

Sat Jun 02, 2012 5:05 pm

I was able to solve the name resolution problem on debian squeeze by creating a dhclient.conf file in /etc/dhcp3 with the following line:

Code: Select all

send host-name "<hostname">;
Without this line, the ras-pi's dhcp client doesn't send its hostname to the dhcp server, so the server can't resolve that hostname when queried by another computer.

Regards,
Joe

Return to “Troubleshooting”