[Pdns-users] How to avoid to be redirected to ad by my ISP if NXDOMAIN?
Gerhard Gaußling
ggrubbish at web.de
Fri Nov 13 20:14:38 UTC 2009
Am Freitag, 13. November 2009 schrieb Ton van Rosmalen:
> Gerhard Gaußling schreef:
> > Am Freitag, 13. November 2009 schrieb Gerhard Gaußling:
> >> Does DHCPOFFER of 172.16.240.21 from 172.16.240.3 (my router,
> >> fritz!box), imply, that the router acts also as a dns server?
> >
> > Sorry, tzhat I answer to myself, but what means this:
> > DNS Proxy launched, local port 57270, remote 172.16.240.3:53
>
> I'm a bit at a loss. These messages come from the pdns authorative
> server afaik.
> It can be configured to use a forwarder in this case apparently your
> router.
>
> Earlier you wrote:
>
> Nov 12 23:59:50 Calling daemonize, going to background
> gerhard at ubuntu:~$
> gerhard at ubuntu:~$ ps axu|grep recu
> root 20642 0.0 0.0 12704 1416 ? Ss Nov12 0:00
> pdns_recursor --local-address=172.16.240.1
> --allow-from=172.16.240.1/8 --daemon --trace
>
> Which is the recursor. Using this information I would think your
> /etc/resolv.conf would need:
> nameserver 172.16.240.1
>
> The DHCP configuration can replace your local network settings which
> you should be able to adjust using th dhclient.conf.
> I can´t offer any usable advise on the dhcp matter though.
Hello Ton,
thank you for your help.
In my network 172.16.240.1 is localhost , the router is 172.16.240.3.
~$ hostname
ubuntu
~$ dig +short ubuntu
172.16.240.1
~$ dig +short localhost
127.0.0.1
~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Use Iface
172.16.240.1 0.0.0.0 255.255.255.255 UH 0 0 eth0
172.16.240.0 0.0.0.0 255.255.255.0 U 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 eth0
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 eth1
0.0.0.0 172.16.240.3 0.0.0.0 UG 100 0 eth0
~$ egrep -v "(#|^ *$)" /etc/dhcp3/dhclient.conf
send host-name "<hostname>";
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name,
netbios-name-servers, netbios-scope;
timeout 30;
alias {
interface "eth0";
fixed-address 172.16.240.1;
option subnet-mask 255.255.255.255;
}
lease {
interface "eth0";
fixed-address 172.16.240.1;
medium "link0 link1";
option subnet-mask 255.255.255.0;
option routers 172.16.240.3;
option domain-name-servers 127.0.0.1;
renew 2 2000/1/12 00:00:01;
rebind 2 2000/1/12 00:00:01;
expire 2 2000/1/12 00:00:01;
}
~$ sudo egrep -v "(#|^ *$)" /etc/powerdns/pdns.conf
allow-recursion=192.168.158.128,192.168.158.2,,172.16.0.0/16,,192.168.0.0/16,,10.0.0.0/8,,127.0.0.1,
allow-recursion-override=on
cache-ttl=20
config-dir=/etc/powerdns
daemon=yes
disable-axfr=yes
disable-tcp=no
distributor-threads=3
guardian=yes
launch=gmysql
lazy-recursion=yes
local-address=127.0.0.1
local-port=53
log-dns-details=yes
log-failed-updates=yes
logfile=/var/log/pdns.log
loglevel=6
module-dir=/usr/lib/powerdns
queue-limit=1500
recursive-cache-ttl=10
recursor=127.0.0.1:5300
setgid=pdns
setuid=pdns
socket-dir=/var/run
use-logfile=yes
webserver=yes
webserver-address=127.0.0.1
webserver-password=xxxxx
webserver-port=8081
version-string=powerdns
include=/etc/powerdns/pdns.d
~$ sudo egrep -v "(#|^ *$)" /etc/powerdns/recursor.conf
allow-from=127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16,
172.16.0.0/12, ::1/128, fe80::/10
delegation-only=com,net
export-etc-hosts=on
local-address=127.0.0.1
local-port=5300
log-common-errors=yes
spoof-nearmiss-max=20
trace=on
version-string=PowerDNS Recursor 3.1-pre2 $Id: pdns_recursor.cc 835
2006-05-12 17:23:41Z ahu $
~$ sudo egrep -v "(#|^ *$|pass)" /etc/powerdns/pdns.d/pdns.local.gmysql
gmysql-host=localhost
gmysql-dbname=pdns
gmysql-user=root
gmysql-socket=/var/run/mysqld/mysqld.sock
~$ sudo egrep -v "(#|^ *$)" /etc/powerdns/pdns.d/pdns.recursors
recursor=172.16.240.3
~$ sudo egrep -v "(#|^ *$)" /etc/powerdns/pdns.d/pdns.local
More information about the Pdns-users
mailing list