[Dnsmasq-discuss] cname apparently not working
Simon Kelley
simon at thekelleys.org.uk
Tue Sep 8 15:27:25 BST 2009
Christoph .J Thompson wrote:
> Hi,
>
> I can't seem to get cname to work for me. Maybe I'm doing something I'm not
> suposed to, but it's not obvious to me. I'm running Linux 2.6. Any help to
> fix this issue would be greatly appreciated.
>
> Regards,
>
> --- dnsmasq.conf
>
> domain-needed
> bogus-priv
>
> local=/eth/
>
> except-interface=eth0
>
> expand-hosts
>
> domain=mylan.eth
>
> #eth1
> dhcp-range=192.168.7.5,192.168.7.254,12h
> #eth2
> dhcp-range=192.168.8.5,192.168.8.254,12h
> #wlan0
> dhcp-range=192.168.9.5,192.168.9.254,12h
>
> dhcp-option=option:ntp-server,192.168.7.4
>
> dhcp-host=00:1e:8c:44:b7:a2,machineone
> cname=www,machine
> cname=wiki,machine
> cname=forum,machine
>
> dhcp-host=00:1b:5e:ee:ca:b5,00:22:33:a2:b5:d6,machinetwo
>
> dhcp-host=00:99:aa:a2:4d:6e,machinethree
>
> --- hosts
>
> 127.0.0.1 localhost
> 192.168.7.1 gw2
> 192.168.7.3 router
> 192.168.7.4 ntp
> 192.168.8.1 gw3
> 192.168.9.1 gw4
> 192.168.6.1 dsl
>
> --- command line
>
> $ host machineone
> machineone.mylan.eth A 192.168.7.222
> !!! machineone.mylan.eth A record has zero TTL
>
> $ host machinethree
> machinethree.mylan.eth A 192.168.8.132
> !!! machinethree.mylan.eth A record has zero TTL
>
> $ host www
> !!! www.mylan.eth does not exist, try an authoritative server
>
> $ host wiki
> !!! wiki.mylan.eth does not exist, try an authoritative server
>
>
expand-hosts doesn't apply to CNAMEs, you need to provide the FQDN in
the cname
cname=forum.mylan.eth,machine
etc,etc
HTH
Simon.
More information about the Dnsmasq-discuss
mailing list