[Dnsmasq-discuss] One LAN host reported differently for some reason - why?
Simon Kelley
simon at thekelleys.org.uk
Thu Dec 1 15:41:45 GMT 2011
On 01/12/11 15:09, Chris Green wrote:
> I have a simple dnsmasq set-up running on a small home LAN.
>
> The server that runs dnsmasq has the following in its /etc/hosts file:-
>
> 127.0.0.1 localhost
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 localhost ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
> #
> #
> # Systems with static addresses, dnsmasq distributes these to the others
> #
> 192.168.1.1 vigor 2820n
> 192.168.1.2 dps dps.zbmc.eu
> 192.168.1.3 hp7310 HPEDDBB7 HP000D9D068F7D
> 192.168.1.4 chris wiki boat info
> 192.168.1.5 maxinexp
> 192.168.13.254 2wire BT2700HGV gateway.2wire.net
>
> The /etc/dnsmasq.conf file has only one custom addition:-
>
> dhcp-host=00:90:a9:70:06:ff,backup
>
>
> However, when I ask for the addresses of machines on the LAN wiki is
> reported differently for some reason:-
>
> chris$ host chris
> chris.zbmc.eu has address 192.168.1.4
> chris$ host wiki
> wiki.zbmc.eu has address 192.168.1.4
> wiki.zbmc.eu is an alias for zbmc.eu.
> wiki.zbmc.eu is an alias for zbmc.eu.
> zbmc.eu mail is handled by 10 zbmc.eu.
> chris$ host boat
> boat.zbmc.eu has address 192.168.1.4
> chris$ host info
> info.zbmc.eu has address 192.168.1.4
> chris$
>
> Can anyone explain why this might be and/or what I may have
> misconfigured? (By the way zbmc.eu is a 'real' domain and some services
> for it run on machine 'chris').
>
"is an alias for" if host-speak for CNAMES, and the CNAME seems to be
coming from the global DNS:
srk at spike:~/dnsmasq-2.59$ dig wiki.zbmc.eu
; <<>> DiG 9.5.1-P3 <<>> wiki.zbmc.eu
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21679
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;wiki.zbmc.eu. IN A
;; ANSWER SECTION:
wiki.zbmc.eu. 10800 IN CNAME zbmc.eu.
zbmc.eu. 10800 IN A 84.45.228.40
;; Query time: 43 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Dec 1 15:37:38 2011
;; MSG SIZE rcvd: 60
Something like
local=/zbmc.eu/
should help insulate you internal view of the DNS from the external one.
What version of dnsmasq are you using?
Simon.
More information about the Dnsmasq-discuss
mailing list