OpenWrt Forum Archive

Topic: strange DNS problems

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi,

i'm using the whiterussian RC1 image and configured dnsmasq as dns forwarder.
from my workstation i get weird responses:
e.g.:
"nslookup www.heise.de" gives me on openWRT AND my workstation: 193.99.144.85

but "nslookup www.gentoo.org" gives me on my workstation: *** Can't find www.gentoo.org: No answer
and the same commend on the openWRT Router: 66.219.59.46

some details about my config:

the DNS server is set on my workstation to 192.168.123.1 (this is the lan interface of my router)

on openWRT i changed the permissons : chmod ugo+r resolv.conf

this is my dnsmasq.conf:
# filter what we send upstream
domain-needed
bogus-priv
filterwin2k
localise-queries

# allow /etc/hosts and dhcp lookups via *.lan
local=/private.lan/
domain=private.lan

# no dhcp / dns queries from the wan
interface=vlan0
interface=vlan2
except-interface=vlan1

# bind only the selected interfaces
#bind-interfaces

# enable dhcp (start,end,netmask,leasetime)
dhcp-authoritative
dhcp-range=lan,192.168.123.100,192.168.123.200,255.255.255.0,12h

dhcp-leasefile=/tmp/dhcp.leases

# use /etc/ethers for static hosts; same format as --dhcp-host
# <hwaddr> [<hostname>] <ipaddr>
read-ethers

# other useful options:
# default route(s): dhcp-option=3,192.168.1.1,192.168.1.2
#    dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2


can someone help me out?
treb

Hi trebiani!

Try to add "log_queries" to your /etc/dnsmasq.conf...
This will tell you which prefix's your Win*Box will try to append to
"www.gentoo.org" at "resolv time". :-)

HTH. Salut, Jörg

jsl123 wrote:

Try to add "log_queries" to your /etc/dnsmasq.conf...
This will tell you which prefix's your Win*Box will try to append to
"www.gentoo.org" at "resolv time". :-)
HTH. Salut, Jörg

i'll try that today and post the results.

thanx,
treb

very, very strange: everything is working now ....

all i did was changing my workstations hostname and i putting the hostname into my local hosts file:
127.0.0.1   localhost   ws01   ws02.private.lan

thanx for your help!

trebiani wrote:

very, very strange: everything is working now ....

well, it stopped working again :-(
after updating to whiterussian RC2 the problem is still there

i added log-queries to my /etc/dnsmasq.conf and started the syslog daemon. here is the result:

Jan  1 00:05:07 OpenWrt syslog.info syslogd started: BusyBox v1.00 (2005.07.18-21:49+0000)
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: started, version 2.22 cachesize 150
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: DHCP, IP range 192.168.123.100 -- 192.168.123.250, lease time 12h
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: using local addresses only for domain private.lan
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: read /etc/hosts - 7 addresses
Jan  1 00:05:21 OpenWrt kern.err dnsmasq[668]: failed to read /etc/ethers:No such file or directory
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: reading /etc/resolv.conf
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: using nameserver 195.58.161.3#53
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: using nameserver 195.34.133.14#53
Jan  1 00:05:21 OpenWrt kern.info dnsmasq[668]: using local addresses only for domain private.lan
Jan  1 00:06:04 OpenWrt kern.debug dnsmasq[668]: query[A] downloads.openwrt.org from 192.168.123.133
Jan  1 00:06:04 OpenWrt kern.debug dnsmasq[668]: forwarded downloads.openwrt.org to 195.34.133.14
Jan  1 00:06:04 OpenWrt kern.debug dnsmasq[668]: forwarded downloads.openwrt.org to 195.58.161.3
Jan  1 00:06:04 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:06:04 OpenWrt kern.debug dnsmasq[668]: query[A] downloads.openwrt.org.private.lan from 192.168.123.133
Jan  1 00:06:04 OpenWrt kern.debug dnsmasq[668]: config downloads.openwrt.org.private.lan is <NXDOMAIN>-IPv4
Jan  1 00:06:26 OpenWrt kern.debug dnsmasq[668]: query[A] www.golem.de from 192.168.123.133
Jan  1 00:06:26 OpenWrt kern.debug dnsmasq[668]: forwarded www.golem.de to 195.58.161.3
Jan  1 00:06:26 OpenWrt kern.debug dnsmasq[668]: reply www.golem.de is 217.110.105.181
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] dyn1.golem.de from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: forwarded dyn1.golem.de to 195.58.161.3
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] golem.ivwbox.de from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: forwarded golem.ivwbox.de to 195.58.161.3
Jan  1 00:06:27 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] dyn1.golem.de.private.lan from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: config dyn1.golem.de.private.lan is <NXDOMAIN>-IPv4
Jan  1 00:06:27 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] golem.ivwbox.de.private.lan from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: config golem.ivwbox.de.private.lan is <NXDOMAIN>-IPv4
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] dyn1.golem.de from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: forwarded dyn1.golem.de to 195.58.161.3
Jan  1 00:06:27 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] dyn1.golem.de.private.lan from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: config dyn1.golem.de.private.lan is <NXDOMAIN>-IPv4
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] markt.golem.de from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: forwarded markt.golem.de to 195.58.161.3
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: reply markt.golem.de is 217.110.105.180
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] images.buch.de from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: forwarded images.buch.de to 195.58.161.3
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: reply images.buch.de is <CNAME>
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: reply images.buch.de.edgesuite.net is <CNAME>
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: reply a1177.g.akamai.net is <NODATA>-IPv4
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: query[A] ad.de.doubleclick.net from 192.168.123.133
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: forwarded ad.de.doubleclick.net to 195.58.161.3
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: reply ad.de.doubleclick.net is <CNAME>
Jan  1 00:06:27 OpenWrt kern.debug dnsmasq[668]: reply ad.3de.doubleclick.net is <NODATA>-IPv4
Jan  1 00:06:28 OpenWrt kern.debug dnsmasq[668]: query[A] ad.de.doubleclick.net from 192.168.123.133
Jan  1 00:06:28 OpenWrt kern.debug dnsmasq[668]: cached ad.de.doubleclick.net is <CNAME>
Jan  1 00:06:28 OpenWrt kern.debug dnsmasq[668]: cached ad.3de.doubleclick.net is <NODATA>-IPv4
Jan  1 00:06:50 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.at from 192.168.123.133
Jan  1 00:06:50 OpenWrt kern.debug dnsmasq[668]: forwarded www.mp3.at to 195.58.161.3
Jan  1 00:06:50 OpenWrt kern.debug dnsmasq[668]: reply www.mp3.at is <CNAME>
Jan  1 00:06:50 OpenWrt kern.debug dnsmasq[668]: reply gonzo2.sil.at is <NODATA>-IPv4
Jan  1 00:06:50 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.at from 192.168.123.133
Jan  1 00:06:50 OpenWrt kern.debug dnsmasq[668]: cached www.mp3.at is <CNAME>
Jan  1 00:06:50 OpenWrt kern.debug dnsmasq[668]: cached gonzo2.sil.at is <NODATA>-IPv4
Jan  1 00:06:51 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.at from 192.168.123.133
Jan  1 00:06:51 OpenWrt kern.debug dnsmasq[668]: cached www.mp3.at is <CNAME>
Jan  1 00:06:51 OpenWrt kern.debug dnsmasq[668]: cached gonzo2.sil.at is <NODATA>-IPv4
Jan  1 00:06:51 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.at from 192.168.123.133
Jan  1 00:06:51 OpenWrt kern.debug dnsmasq[668]: cached www.mp3.at is <CNAME>
Jan  1 00:06:51 OpenWrt kern.debug dnsmasq[668]: cached gonzo2.sil.at is <NODATA>-IPv4
Jan  1 00:07:09 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.at from 192.168.123.133
Jan  1 00:07:09 OpenWrt kern.debug dnsmasq[668]: cached www.mp3.at is <CNAME>
Jan  1 00:07:09 OpenWrt kern.debug dnsmasq[668]: cached gonzo2.sil.at is <NODATA>-IPv4
Jan  1 00:07:09 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.at from 192.168.123.133
Jan  1 00:07:09 OpenWrt kern.debug dnsmasq[668]: cached www.mp3.at is <CNAME>
Jan  1 00:07:09 OpenWrt kern.debug dnsmasq[668]: cached gonzo2.sil.at is <NODATA>-IPv4
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com from 192.168.123.133
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: forwarded www.mp3.com to 195.58.161.3
Jan  1 00:07:14 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com.private.lan from 192.168.123.133
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: config www.mp3.com.private.lan is <NXDOMAIN>-IPv4
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com from 192.168.123.133
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: forwarded www.mp3.com to 195.58.161.3
Jan  1 00:07:14 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com.private.lan from 192.168.123.133
Jan  1 00:07:14 OpenWrt kern.debug dnsmasq[668]: config www.mp3.com.private.lan is <NXDOMAIN>-IPv4
Jan  1 00:07:15 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com from 192.168.123.133
Jan  1 00:07:15 OpenWrt kern.debug dnsmasq[668]: forwarded www.mp3.com to 195.58.161.3
Jan  1 00:07:15 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:07:15 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com.private.lan from 192.168.123.133
Jan  1 00:07:15 OpenWrt kern.debug dnsmasq[668]: config www.mp3.com.private.lan is <NXDOMAIN>-IPv4
Jan  1 00:07:16 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com from 192.168.123.133
Jan  1 00:07:16 OpenWrt kern.debug dnsmasq[668]: forwarded www.mp3.com to 195.58.161.3
Jan  1 00:07:16 OpenWrt kern.warn dnsmasq[668]: nameserver 195.58.161.3 refused to do a recursive query
Jan  1 00:07:16 OpenWrt kern.debug dnsmasq[668]: query[A] www.mp3.com.private.lan from 192.168.123.133
Jan  1 00:07:16 OpenWrt kern.debug dnsmasq[668]: config www.mp3.com.private.lan is <NXDOMAIN>-IPv4

what's wrong with my config and why is it sometimes working?!?

(Last edited by trebiani on 20 Jul 2005, 20:13)

The discussion might have continued from here.