[Dnsmasq-discuss] DNS resolv problem

Laslo Forro getforum at gmail.com
Thu Oct 30 19:58:06 GMT 2008


Hi there,
the problem is that something is missing from the picture. The
story is shortly this:
I have a DNSMasq dhcp/dns server serving a small LAN subnetwork
(salmonix.net local domain). Now, from the server I can reach the
clients straight, but from the clients the ping goes a long way around
to the OpenDNS nameserver (set as default, see ping test at the end) The
name resolution for the clients work, however.
I do not want to use /etc/hosts.
OS: Gentoo Linux.

The scenario:

WAN -- Router(192.168.0.1) -- wlan0(192.168.0.50) SERVER
The SERVER:
resolv.conf: 
# Generated by dhcpcd for interface wlan0
nameserver 127.0.0.1
nameserver 208.67.222.222
nameserver 208.67.220.22

dhcpcd for wlan0 is run with -R option to avoid overriding the
resolv.conf file.

dnsmasq conf:
domain-needed
bogus-priv
local=/salmonix.net/127.0.0.1
except-interface=wlan0	# facing Router -> WAN
no-hosts
expand-hosts
domain=salmonix.net
dhcp-range=192.168.1.10,192.168.1.13,12h
dhcp-range=192.168.2.10,192.168.2.13,12h
dhcp-range=192.168.3.10,192.168.3.13,12h
dhcp-host=00:03:93:01:1E:BE,dragonfly
dhcp-host=00:15:F2:6A:BE:DB,argos
dhcp-host=00:0D:56:D0:D4:39,mintaka


The hosts file of the clients and server contain only loop. 

Tests:
pinging client "dragonfly":
 ping dragonfly
PING dragonfly (192.168.1.13) 56(84) bytes of data.
64 bytes from dragonfly.salmonix.net (192.168.1.13): icmp_seq=1 ttl=64
time=1001 ms
64 bytes from dragonfly.salmonix.net (192.168.1.13): icmp_seq=2 ttl=64
time=1.68 ms
64 bytes from dragonfly.salmonix.net (192.168.1.13): icmp_seq=3 ttl=64
time=0.424 ms
64 bytes from dragonfly.salmonix.net (192.168.1.13): icmp_seq=4 ttl=64
time=0.422 ms
64 bytes from dragonfly.salmonix.net (192.168.1.13): icmp_seq=5 ttl=64
time=0.420 ms
64 bytes from dragonfly.salmonix.net (192.168.1.13): icmp_seq=6 ttl=64
time=0.355 ms
^C
--- dragonfly ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5003ms
rtt min/avg/max/mdev = 0.355/167.414/1001.182/372.872 ms, pipe 2

ping server "darkstar" from client "dragonfly" as "darkstar":
PING darkstar.salmonix.net (208.69.32.132) 56(84) bytes of data.
64 bytes from hit-nxdomain.opendns.com (208.69.32.132): icmp_seq=1
ttl=55 time=229 ms
64 bytes from hit-nxdomain.opendns.com (208.69.32.132): icmp_seq=2
ttl=55 time=278 ms
64 bytes from hit-nxdomain.opendns.com (208.69.32.132): icmp_seq=3
ttl=55 time=298 ms
64 bytes from hit-nxdomain.opendns.com (208.69.32.132): icmp_seq=4
ttl=55 time=343 ms
64 bytes from hit-nxdomain.opendns.com (208.69.32.132): icmp_seq=5
ttl=55 time=268 ms
64 bytes from hit-nxdomain.opendns.com (208.69.32.132): icmp_seq=6
ttl=55 time=314 ms

--- darkstar.salmonix.net ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5000ms
rtt min/avg/max/mdev = 229.110/288.858/343.622/36.235 ms

ping server "darkstar" from client "dragonfly" with IP:

PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.416 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.423 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.415 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.479 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.399 ms

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.399/0.426/0.479/0.033 ms



More information about the Dnsmasq-discuss mailing list