Ask your questions here.
Post a reply
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## network problems, quite sure dns resolution

Sat Apr 20, 2013 6:01 pm

Let me try to explain, it is a little bit confusing.
After a week i booted my (main) PC.
I logged in and sshfs ran automatically, like it should
(It is in my .profile, and i got the taskfer/osmo/zim files hosted on the raspberry, from where i sshfs-mount them).
Fine.
I wanted to pull some files from github, and couldn't connect. What's that?
Ok, i thought:
If i can sshfs mount, then LAN must work.
I tried to ssh to the raspberry, and that worked.
Logged out of raspberry, ran
ping -c riseup.net
-> host not known
I started ssh-forwarding via a script, which will forward the port of privoxy from the server, so i can use tor and i2p.
ran apt-get upgrade, and that worked (uncommented usage of port 8118/privoxy entry in my .bashrc and sourced it, so apt-get can use tor/port-forwarding from server)
(ping still didn't work, probably doesn't use tor by that, like lynx)
Good, i ssh-ed to the rasperry, ran ping at a web-site, it worked.
To be sure i ran
ping 8.8.8.8
from the main PC, and that worked too.
- ---
End first part, describing the problem
----
I got checked three files:
networking/interfaces
resolv.conf
dchp/dhclient.conf
(checked means: those are the -only- ones i know)
- interfaces looked like usual
- resolv.conf is different than the one on the raspberry:

Code:
  `... yada not edit yada ...
  nameserver 192.168.178.1
  search fritz.box
  `

fritz.box being my router.
Here is the resolv.conf of raspberry:

Code:
  `domain fritz.box
  search fritz.box
  nameserver 204.45.18.18
  nameserver 204.45.18.26
  nameserver 192.168.178.1
  `

If it says: don't edit, i assume it does so for a reason.
changes will be overwritten after reboot ( i am quite sure), so i decided to leave it alone.
But in dhclient.conf i get entries to use different nameservers.
Here is the line from the main PC (which couldn't connect to dns-names):

Code:
  `supersede domain-name-servers 127.0.0.1, 204.45.18.18, 204.45.18.26;`

and here is the one from the raspberry:

Code:
  `prepend domain-name-servers 204.45.18.18, 204.45.18.26; # http://dnsreactor.net
  `

and here is the one where privoxy and tor are hosted:

Code:
  `supersede domain-name-servers 127.0.0.1, 204.45.18.18, 204.45.18.26;
  `

------
End of comparison of files
-----
So i commented the line for dns-servers in my main PC's dhclient.conf:

Code:
  `supersede domain-name-servers 127.0.0.1, 204.45.18.18, 204.45.18.26;`

and dns resolution was up and running again.
I ran networking restart from etc init.d (not sure if necessary).
The problem or question is:
I still don't know what exactly the problem is.
I would like to have an entry in dhclient.conf to not use the ISP dns-servers, but a different one
(be it dnsreactor or google or whatever is out there).
On the main PC resolvconf is installed, i am not sure why.
I didn't check bug-reports yet.
System is Sid.
thanks in advance for explanations or opinions, even little hints are much appreciated
(been a while i fooled with networking, and am a bit clueless right now, focused on very different problems).
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.