Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Debian file server I'm accessing from windows clients. Until a power outage a few days ago I had no issues accessing via hostname. Now I must use the ip handed out by my router. I can ssh (putty) into it via hostname, but cannot ping or access my samba shares with hostname. I have rebooted my router, restarted server and client machines. What gives?

Seems that the server still knows it's hostname - just isn't resolving in some places.

tone@homeserver:~$ hostname

edit: my router (linksys running dd-wrt) tells me that all my other machines have a hostname mapped, so i strongly suspect the issue is something in the configuration of this particular machine. I also found that the hostname is not resolving anywhere (which is different from my initial statement).

DHCP Clients
Host Name   IP Address  MAC Address     Client Lease Time
Zachs-iPod   xx:xx:xx:xx:34:2A   1 day 00:00:00
*   xx:xx:xx:xx:A8:A8   1 day 00:00:00
Andrea-PC   xx:xx:xx:xx:4D:B3   1 day 00:00:00
tsoutherlandpc   xx:xx:xx:xx:0A:34   1 day 00:00:00
Tones-iPhone   xx:xx:xx:xx:3D:D4   1 day 00:00:00
share|improve this question
There's some piecemeal information here. What did you use before for resolution? WINS? A DNS server? Your router handed it out? – Bart Silverstrim Sep 20 '10 at 13:40
Are all the systems having trouble resolving hostnames or just a few systems? – Bart Silverstrim Sep 20 '10 at 13:41
You said you can SSH into (a system) by hostname, but that same system can't ping by hostname to the same system? Does it resolve but not ping? – Bart Silverstrim Sep 20 '10 at 13:41
From the information you have given without the edit, I'd suspect that something was damaged int he router (what kind of router is it?). Inexpensive routers can do weird stuff when they fail. But without knowing how you had resolution set up or how each system involved is or isn't resolving, there's not much I could offer on troubleshooting. You could consider setting static IP's and a DNS server on your Debian system and use that... – Bart Silverstrim Sep 20 '10 at 13:48
my router hands out ips, all systems are having trouble resolving, i can ssh using PuTTY - maybe that program stores the dns?? pings do not work, will not resolve when accessing share i.e. \\homeserver\mediashare. it's a Linksys WRT54G - only 6 months old. I flashed with DD-WRT when I got it and have not had any issues yet. – Tone Sep 20 '10 at 18:31
up vote 0 down vote accepted

it's working now. after a few reboots both on the server and the router. setting the ip as static and changing back to dynamic in the router it started working again. go figure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.