I want to add a SRV record to /etc/dnsmasq.conf config, but it seems to be ignored.
I also added it to a separate conf file in /etc/dnsmasq.d but it didnt work either?
Where should I put it?
For me it appears to work, but apparently a restart instead of a reload is needed to make the new SRV records functional:
[ 23.458361] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
^CPlease press Enter to activate this console.
BusyBox v1.33.2 (2022-04-16 12:59:34 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 21.02.3, r16554-1d4dea6d4f
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/# echo 'srv-host=_ldap._tcp.example.org,ldapserver.example.com,389
' >> /etc/dnsmasq.conf
root@OpenWrt:/# nslookup -q=SRV _ldap._tcp.example.org 127.0.0.1#53
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find _ldap._tcp.example.org: NXDOMAIN
root@OpenWrt:/# /etc/init.d/dnsmasq reload
root@OpenWrt:/# nslookup -q=SRV _ldap._tcp.example.org 127.0.0.1#53
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find _ldap._tcp.example.org: NXDOMAIN
root@OpenWrt:/# /etc/init.d/dnsmasq restart
udhcpc: started, v1.33.2
udhcpc: sending discover
udhcpc: no lease, failing
root@OpenWrt:/# nslookup -q=SRV _ldap._tcp.example.org 127.0.0.1#53
Server: 127.0.0.1
Address: 127.0.0.1#53
_ldap._tcp.example.org service = 0 0 389 ldapserver.example.com
root@OpenWrt:/#