I have a pi on a remote location, every now and then the connection is lost. I keep on asking somebody on the pi network to log into it using ssh and restart networking and only then it works. I was very specific that they do not reboot the pi. So networking works localy. I also asked to ping an google.com from the pi and it did not work, but pinging of google does work. So I thought it was a DNS issue, so I codded in resolv.conf and things worked for a while but now again I have no connection anymore. I'm using static IP on the pi. How can I be sure that it is still a DNS problem or smth else? is the kind of issues logged somewhere in /var/logs?

I also noticed that resolv.conf is regenerated...just like in ubuntu...

closed as off-topic by lenik, syb0rg, nc4pk, Piotr Kula, SteveIrwin Oct 31 '13 at 4:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Linux use unrelated to the RaspberryPi are off-topic here, but can be asked on Unix & Linux Stack Exchange." – lenik, syb0rg, nc4pk
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Have you tried ssh into a linux box from wan other than the pi? you would do this to test if the issue is the pi or not. could be your router/switch or modem or dsl router/modem. or the isp is doing something that messes up ssh. – Alex Sep 10 '13 at 22:31
  • Unfort. I do not have any other linux machine on that network. That would have helped! – big_mu5 Sep 11 '13 at 18:10

Edit the /etc/resolvconf/resolv.conf.d/base (or the head file ) and add any manually added dns server. resolvconf will generate the resolve.conf based on that info.

Why is the dns is disappearing is strange, are your dhcp working fine?

You can also try installing dnsmasq, to bypass the resolvconf weirdness. Do apt-get install dnsmasq and then restart the network. You may need to add the resolvers to dnsmasq, if there is none in /etc/resolv.conf

  • /etc/resolvconf/resolv.conf.d/base does not exist on my pi! I dont use dhcp, maybe thats why? – big_mu5 Sep 11 '13 at 18:14
  • check if you have resolvconf... if not, what is changing the resolv.conf? try to check that. look at the modify time to see if its a cron, the owner, who have permissions, etc – higuita Sep 12 '13 at 15:39

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