Eric Cooper wrote: > Package: dnsmasq > Version: 2.47-3 > Severity: normal > > 1. I have a config line like this: > cname=ns,mynameserver > But when I do > $ dig ns @localhost > I get a list of the root name servers instead. Other cnames (sort of) > work; but "ns" is broken.
"dig" wrinkle, I think you found that. > > 2. I'm specifying a domain and expand-hosts in dnsmasq.conf, and no > domains in my /etc/hosts file. > dnsmasq responds to queries for unqualified names like this: > $ dig foo @localhost > I think it should require a qualified name with a matching domain, > and fail with an unqualified name. Why? That's not what the doc says, (though I'll admit the doc is not clear, it says that it makes names in /etc/hosts work the same way as DHCP derived names, which is to match <name> and <name>.<domain>.) It's not clear to me that the current behaviour is wrong, and certainly not clear that it's wrong enough to break all the existing installations which may rely on it. I'm open to arguments to the contrary. You can get the behaviour you want by using domains in /etc/hosts. > > 3. dnmasq responds to lookups of unqualified cnames: > $ dig myalias @localost > (which it shouldn't, IMO), but not to > $ dig myalias.mydomain @localhost > which it should, because I'm using expand-hosts. I shouldn't have to use > cname=myalias.mydomain,foo > The behaviour for CNAME here is consistent with "other" record types, MX, etc, rather than with A records derived from /etc/hosts. This could probably be changed without too much grief. Cheers, Simon. > -- System Information: > Debian Release: squeeze/sid > APT prefers testing > APT policy: (990, 'testing'), (500, 'stable'), (400, 'unstable'), (1, > 'experimental') > Architecture: i386 (i686) > > Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages dnsmasq depends on: > ii adduser 3.110 add and remove users and groups > ii libc6 2.9-4 GNU C Library: Shared libraries > ii libdbus-1-3 1.2.12-1 simple interprocess messaging > syst > ii netbase 4.34 Basic TCP/IP networking system > > dnsmasq recommends no packages. > > Versions of packages dnsmasq suggests: > pn resolvconf <none> (no description available) > > > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org