Hi
This may be a stupid question but after a couple of hours and some headache I can't see where the problem is.
I'm trying to use SRV records to relay to different servers as I've done many many times before. But in this case I'm getting a 478 from kamailio and I see that it's not trying to resolve SRV.
From the log:
[core/dns_cache.c:527]: _dns_hash_find(): (fs.mydomain.dev(16), 1), h=632
[core/resolve.c:784]: get_record(): lookup(fs.mydomain.dev, 1) failed
[core/dns_cache.c:761]: dns_cache_mk_bad_entry(): (fs.mydomain.dev, 1, 60, 1)
[core/dns_cache.c:701]: dns_cache_add(): adding fs.mydomain.dev(16) 1 (flags=1) at 632
[core/dns_cache.c:2807]: dns_a_resolve(): (fs.mydomain.dev, 0) returning -7
[core/dns_cache.c:3176]: dns_srv_sip_resolve(): (fs.mydomain.dev, 0, 0), ip, ret=-7
uri2dst2(): failed to resolve "fs.mydomain.dev" :unresolvable A or AAAA request (-7)
When doing tcpdump port 53 I see A record query but no SRV SRV records of course exist although they are not being checked.
dns params in kamailio: dns_try_ipv6=no dns_retr_time=1 dns_retr_no=1 dns_use_search_list=no use_dns_cache=on use_dns_failover=on dns_srv_lb=on dns_try_naptr=no dns_sctp_pref=1 dns_tcp_pref=1 dns_tls_pref=1 dns_udp_pref=1
Same exact config in another server is working. There's something I'm missing and can't see.
Any hints?
cheers,
Jon
El Sat, 13 Jan 2024 19:08:37 +0100 "Jon Bonilla (Manwe) via sr-users" sr-users@lists.kamailio.org escribió:
It was stupid indeed.
I wasn't seeing that I was receiving 5060 as ruri port.
For future readers: If you have $rp != $null only A and AAAA queries are performed.
cheers,
Jon