[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 19:12:03 UTC 2009


Am Freitag, 13. November 2009 schrieb Ton van Rosmalen:
> Hi Gerhard,
> What is the contents of the /etc/resolv.conf file?
> The dig @localhost queries the local recursor. Lynx uses the settings
> of resolv.conf.
> If your ISP-nameservers are in the resolv.conf (perhaps via dhcp?)
> that could explain the issue your seeing.
>
> Regards,
>
> Ton

~$ egrep -v "(^ *$|#)" /etc/resolv.conf
nameserver 127.0.0.1

~$ ifconfig|grep -A1 eth0
eth0      Link encap:Ethernet  HWaddr 00:11:d8:8a:15:37  
          inet addr:172.16.240.21  Bcast:172.16.240.255  
Mask:255.255.255.0
--
eth0:0    Link encap:Ethernet  HWaddr 00:11:d8:8a:15:37  
          inet addr:172.16.240.1  Bcast:172.16.255.255  
Mask:255.255.255.255
--
peth0     Link encap:Ethernet  HWaddr 00:11:d8:8a:15:37  
          inet6 addr: fe80::211:d8ff:fe8a:1537/64 Scope:Link

peth0 is due to a xen dom0. 

But wait: The box receives a dhcp offer from the router:
dmesg:
[  299.717830] Bridge firewalling registered
[  299.718898] tmpbridge: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM 
feature.
[  301.473909] device peth0 entered promiscuous mode
[  301.473925] audit(1258135223.713:3): dev=peth0 prom=256 old_prom=0 
auid=4294967295
[  301.495717] eth0: port 1(peth0) entering learning state
[  301.498574] eth0: topology change detected, propagating
[  301.498582] eth0: port 1(peth0) entering forwarding state
[  307.764432] Setting mem allocation to 2956160 kiB
[  311.745590] eth0: no IPv6 routers present
[  311.881694] peth0: no IPv6 routers present

~$ sudo invoke-rc.d networking restart
 * Reconfiguring network interfaces...                                          
Reloading PowerDNS authoritative nameserver: requested reload
There is already a pid file /var/run/dhclient.eth0.pid with pid 28095
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:11:d8:8a:15:37
Sending on   LPF/eth0/00:11:d8:8a:15:37
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 172.16.240.3 port 67
SIOCADDRT: File exists
There is already a pid file /var/run/dhclient.eth0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:11:d8:8a:15:37
Sending on   LPF/eth0/00:11:d8:8a:15:37
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 172.16.240.21 from 172.16.240.3
DHCPREQUEST of 172.16.240.21 on eth0 to 255.255.255.255 port 67
DHCPACK of 172.16.240.21 from 172.16.240.3
Reloading PowerDNS authoritative nameserver: requested reload
bound to 172.16.240.21 -- renewal in 415221 seconds.
 * Stopping NTP server ntpd
   ...done.
 * Starting NTP server ntpd
   ...done.
SIOCADDRT: No such process
Failed to bring up eth1.


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?



More information about the Pdns-users mailing list