On 03/30/2011 12:41 PM, Michal Novotny wrote:
> 1) /usr/sbin/dnsmasq --strict-order --bind-interfaces
> --pid-file=/var/run/libvirt/network/default.pid --conf-file=
> --except-interface lo --txt-record="txt-record","some value, which is
> something" --addn-hosts=/var/run/libvirt/network/default.hosts
> --listen-address 192.168.122.1 --dhcp-range
> 192.168.122.2,192.168.122.254
> --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases
> --dhcp-lease-max=253 --dhcp-no-override
>
> -> the guest was unable to access the records from --addn-hosts (tested
> using nslookup)
>
> 2) /usr/sbin/dnsmasq --strict-order --bind-interfaces
> --pid-file=/var/run/libvirt/network/default.pid --conf-file=
> --except-interface lo --txt-record="txt-record","some value, which is
> something" --addn-hosts=/var/run/libvirt/network/default.hosts
> --listen-address 192.168.122.1 --dhcp-range
> 192.168.122.2,192.168.122.254
> --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases
> --dhcp-lease-max=253 --dhcp-no-override --no-daemon
>
> -> the --no-daemon option made it working for the --addn-hosts but it
> was not working without it, i.e. in the daemon mode. Based on this I
> guess this is the bug in Fedora-14 DNSMasq (which is the same as the one
> for Fedora-14 since I'm unable to get any update and the version I'm
> having is dnsmasq-2.52-1.fc13.i686). Should I file a bug against DNSMasq
> about this?
I think you should triage it a bit more, e.g. with strace -ff. Anyway,
there is no hurry of doing this I think.
Well, you mean to use strace on the daemonized process?
> Also, I've been testing the --txt-record once again and not
grabbed it
> with wireshark and I had to query the "txt-record" TXT record for this
> and the wireshark was showing the quotes there as well now. Should I
> disable it then and use the working syntax for record name which
> (according to my testing) is to use *--txt-record=txt-record,"some
> value, which is something"* instead, i.e. to not use quotes in the name?
I absolutely cannot parse this sentence.
Well, what I meant was that if I invoked dnsmasq with
--txt-record="txt-record", "some value" then I had to dig for
"txt-record" with quotes, i.e. using the dig TXT \"txt-record\"
syntax
in bash. In Wireshark it was showing request for record with the quotes,
i.e. "txt-record" instead of querying just for txt-record, i.e. without
quotes. To be able to query it without quotes I had to invoke dnsmasq
with --txt-record=txt-record, "some value" arguments.
Michal
--
Michal Novotny <minovotn(a)redhat.com>, RHCE
Virtualization Team (xen userspace), Red Hat