[Dnsmasq-discuss] OSX doesn't resolve addresses assigned by DHCP
Ben Tisdall
sysadmin at tisdall.org.uk
Tue Apr 25 20:44:55 BST 2006
Hi,
I'm using dnsmasq 2.22-2 on Debian stable and am experiencing a problem with OSX
10.4.6 not resolving the address of a host that's been assigned by the dhcp
server. I don't really see how it's a dnsmasq issue but I'm otherwise pretty
stumped...
whitey:~ bentis$ ping sonny
ping: cannot resolve sonny: unknown host
And yet on the same machine:
; <<>> DiG 9.2.2 <<>> sonny
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27317
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;sonny. IN A
;; ANSWER SECTION:
sonny. 0 IN A 192.168.0.18
;; Query time: 8 msec
;; SERVER: 192.168.0.2#53(192.168.0.2)
;; WHEN: Tue Apr 25 18:25:49 2006
;; MSG SIZE rcvd: 39
And resolution works fine from other machines on the LAN.
Now, if I add the host in question to /etc/hosts on the dnsmasq machine and
restart, resolution works and I can ping the machine by hostname from the mac.
However, the output from dig seems virtually identical:
; <<>> DiG 9.2.2 <<>> sonny
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29363
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;sonny. IN A
;; ANSWER SECTION:
sonny. 0 IN A 192.168.0.18
;; Query time: 1 msec
;; SERVER: 192.168.0.2#53(192.168.0.2)
;; WHEN: Tue Apr 25 18:27:56 2006
;; MSG SIZE rcvd: 39
/etc/dnsmasq.conf:
domain-needed
bogus-priv
resolv-file=/etc/resolv-dhcp
local=/local/
address=/xxxxxxxxxx/192.168.0.2
address=/xxxxxxxxxx/192.168.0.245
interface=eth1
dhcp-range=192.168.0.11,192.168.0.50,24h
dhcp-option=44,192.168.0.2 # set netbios-over-TCP/IP nameserver(s) aka WINS
server(s)
dhcp-option=45,0.0.0.0 # netbios datagram distribution server
dhcp-option=46,8 # netbios node type
dhcp-option=47 # empty netbios scope.
Any ideas?
Thanks,
Ben Tisdall
More information about the Dnsmasq-discuss
mailing list