On Wed, Sep 15, 2021 at 02:29:57AM +0300, Otto Modinos wrote: > On Tue, Sep 14, 2021 at 09:50:54PM +0200, Geert Stappers via Dnsmasq-discuss > wrote: > > On Tue, Sep 14, 2021 at 07:51:02PM +0300, Otto Modinos wrote: > > > On Tue, Sep 14, 2021 at 02:02:59PM +0000, Donald Muller wrote: > > > > > > > > > > Something like this: > > > > > > > > > > domain=mydomain.home,192.168.1.0/24,local > > > > > srv-host=_xmpp-client._tcp,myhost.mydomain.home,5222,0,5 > > > > > > > > > > This should work I believe. Yet, a SRV query for > > > > > _xmpp-client._tcp.mydomain.home gets no answer. > > > > > > > > > > I also tried srv-host=_xmpp-client._tcp.,myhost.mydomain.home, notice > > > > > the ending dot on the service (just like the manual also has) and > > > > > that's > > > > > exactly the same. > > > > > > > > > > > > > Try querying xmpp-client._tcp.mydomain.home > > > > > > > > > > No result. > > > > > > Please elaborate > > > > > > Provide the output the dig command that is used > > and what dnsmasq logs with --log-queries=extra > > > Running the following command, > > dig _xmpp-client._tcp.mydomain.home SRV > > dig responds with > > ;; global options: +cmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 51244 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 > > ;; OPT PSEUDOSECTION: > ; EDNS: version: 0, flags:; udp: 4096 > ;; QUESTION SECTION: > ;_xmpp-client._tcp.mydomain.home. IN SRV > > ;; Query time: 3 msec > ;; SERVER: 192.168.1.2#53(192.168.1.2) > ;; WHEN: Wed Sep 15 02:23:59 EEST 2021 > ;; MSG SIZE rcvd: 59 > > and dnsmasq logs > > 405 192.168.1.3/35721 query[SRV] _xmpp-client._tcp.mydomain.home from > 192.168.1.3 > 405 192.168.1.3/35721 config _xmpp-client._tcp.mydomain.home is NXDOMAIN > > The results are exactly the same without the leading underscore. >
Acknowledge. I don't know why there is not the desired behaviour from dnsmasq. Consider to run extra tests and share the result with the ML. Tests I have in mind: 1: * Remove / comment out all srv-host entrys * Restart dnsmasq * Check startup messages e.g. |sep 15 07:36:07 paddy dnsmasq-dhcp[1591277]: DHCP, IP range 192.168.45.150 -- 192.168.45.250, lease time 12h |sep 15 07:36:07 paddy dnsmasq[1591277]: reading /etc/resolv.conf |sep 15 07:36:07 paddy dnsmasq[1591277]: using nameserver 172.24.0.10#53 |sep 15 07:36:07 paddy dnsmasq[1591277]: read /etc/hosts - 24 addresses |sep 15 07:36:07 paddy systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server. 2: * Have srv-host entries * Restart dnsmasq * Check startup messages * Look for reports on SRV host Groeten Geert Stappers P.S. Karma bonus points for contributing to usable messages in the mailinglist archive. -- Silence is hard to parse _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss