richardvo...@gmail.com on 26/01/10 01:56, wrote:
There must be something missing from my dnsmasq config because I see now that
any attempt to use the host names of dhcp clients from the gateway server fail
with " unknown host ...". I'm on debian stable if that makes any difference
Sounds like your gateway is not using dnsmasq for lookups.  dnsmasq
tells dhcp clients to use its services, but the gateway you will have
to manually configure in /etc/resolv.conf to send requests to the
local dnsmasq process.
I mistakenly included the /etc/hosts file instead of the /etc/resolv.conf file
which would have been far more informative re this problem.

It looks like this:

adam@isengard:~$ cat /etc/resolv.conf
domain isengard.localdomain
search isengard.localdomain
nameserver 127.0.0.1
nameserver 194.74.65.68

Run netstat whilst dnsmasq is stopped, to see if any other dns-capable
daemon could be binding port 53 and preventing dnsmasq from receiving
the queries.


This is what I see:

Interesting ports on localhost (127.0.0.1):
Not shown: 1703 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh
25/tcp   open  smtp
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
631/tcp  open  ipp
3306/tcp open  mysql
3689/tcp open  rendezvous
7634/tcp open  hddtemp
8009/tcp open  ajp13
8080/tcp open  http-proxy

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.148 seconds
adam@isengard:~$  netstat -an |grep -i "listen "
tcp        0      0 0.0.0.0:11301           0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:6600          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3689            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:33005           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:7634          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN
tcp6       0      0 :::8009                 :::*                    LISTEN
tcp6       0      0 :::139                  :::*                    LISTEN
tcp6       0      0 :::8080                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:631                 :::*                    LISTEN
tcp6       0      0 :::445                  :::*                    LISTEN


Reply via email to