View previous topic :: View next topic |
Author |
Message |
musv Advocate
Joined: 01 Dec 2002 Posts: 3337 Location: de
|
Posted: Sun Nov 02, 2014 12:45 pm Post subject: browser findet keine lokalen Rechnernamen mehr (pdnsd?) |
|
|
Hallo,
ich hab vor einiger Zeit meine Nas als DNS-Server umgerüstet. Das funktioniert soweit ganz gut bis auf ein paar Probleme. Eins davon ist, dass der Browser irgendwie die lokalen Rechnernamen an Google schickt, wenn ich die in die Navigationszeile eintrag:
Navigationszeile im Browser: |
nas -> Google-Suche
http://nas -> funktioniert |
Die Source-Section meiner pdnsd.conf
/etc/pdnsd.conf: | source {
ttl=1w; # Cache-Zeit 1 Woche für lokale Einträge
owner=localhost; #
serve_aliases=on;
file="/etc/hosts"; # lokale /etc/hosts auslesen und weitergeben
file="/etc/hosts-pdnsd"; # Server mit Werbung
file="/etc/hosts-pdnsd-own"; # Server mit Werbung - selbst hinzugefügt
} |
/etc/hosts/: | 127.0.0.1 localhost nas nas.fritz.box
…
192.168.109.11 nas nas.fritz.box
… |
In der hosts-pdnsd stehen 13000 blacklisted Werbeserver, die ich automatisch aktualisieren kann. In der hosts-pdnsd-own hab ich noch weitere, die ich manuell hinzufüg:
/etc/hosts-pdnsd-own: | 192.168.109.11 ads20.wwe-media.de
192.168.109.11 adserver.adworxs.net
192.168.109.11 de.mirago.com |
Das Merkwürdige:
Von einem Rechner im Netzwerk aus:
ping nas: | PING nas (192.168.109.11) 56(84) bytes of data.
64 bytes from de.mirago.com (192.168.109.11): icmp_seq=1 ttl=64 time=0.136 ms
64 bytes from de.mirago.com (192.168.109.11): icmp_seq=2 ttl=64 time=0.167 ms |
Ich versteh nicht, warum mir da jetzt die Domain de.mirago.com zurückgegeben wird.
Logfile
Beim Aufruf von nas/w (mein Wiki auf der Nas) erhalte ich im Logfile (Systemd):
journalctl: | Nov 02 13:32:29 Nas pdnsd[16227]: * 11/02 13:32:29| pdnsd: info: pdnsd-1.2.9a-par starting.
Nov 02 13:32:29 Nas pdnsd[16227]: - 11/02 13:32:29| Debug messages activated
Nov 02 13:32:29 Nas pdnsd[16227]: - 11/02 13:32:29| Using IPv4.
Nov 02 13:32:29 Nas pdnsd[16227]: * 11/02 13:32:29| pdnsd: warning: Could not open disk cache file /var/cache/pdnsd/pdnsd.cache: No such file or directory
Nov 02 13:32:29 Nas pdnsd[16227]: - 11/02 13:32:29| All threads started successfully.
Nov 02 13:32:29 Nas pdnsd[16227]: - 11/02 13:32:29| Server status thread exiting.
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| Received query (msg len=21).
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| Flags: RD
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| Questions are:
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| qc=IN (1), qt=A (1), query="nas."
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| Starting cached resolve for: nas., query A
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| Entry found in cache for 'nas.' with dflags=LOC.
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| Outbound msg len 76, tc=0, rc="no error"
Nov 02 13:32:37 Nas pdnsd[16227]: 1 11/02 13:32:37| Answering to: 192.168.109.20, source address: 192.168.109.11
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Received query (msg len=32).
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Flags: RD
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Questions are:
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| qc=IN (1), qt=A (1), query="www.google.com."
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Starting cached resolve for: www.google.com., query A
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Trying name servers.
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Sending query to 213.73.91.35
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Received query (msg len=32).
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Flags: RD
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Questions are:
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| qc=IN (1), qt=A (1), query="www.google.com."
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Starting cached resolve for: www.google.com., query A
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Trying name servers.
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Sending query to 213.73.91.35
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Received reply from 213.73.91.35 (msg len=128).
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| rcode=0 (no error), flags: RD RA
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Query to 213.73.91.35 succeeded.
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Outbound msg len 128, tc=0, rc="no error"
Nov 02 13:32:37 Nas pdnsd[16227]: 2 11/02 13:32:37| Answering to: 192.168.109.20, source address: 192.168.109.11
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Received reply from 213.73.91.35 (msg len=128).
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| rcode=0 (no error), flags: RD RA
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Query to 213.73.91.35 succeeded.
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Outbound msg len 128, tc=0, rc="no error"
Nov 02 13:32:37 Nas pdnsd[16227]: 3 11/02 13:32:37| Answering to: 192.168.109.20, source address: 192.168.109.11
… |
Wie krieg ich das abgestellt? |
|
Back to top |
|
|
musv Advocate
Joined: 01 Dec 2002 Posts: 3337 Location: de
|
Posted: Mon Nov 03, 2014 7:23 pm Post subject: |
|
|
Bin einen kleinen Schritt weiter.
Wenn ich die hosts-Datei mit meinen lokalen Rechnern an die 3. Position in der source-Section der pdnsd.conf verschieb, dann krieg ich die korrekte URL (gar keine) beim Ping.
Die Browser rufen trotzdem noch google auf. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|