Hi Miha,
In OpenSIPS, for any DNS lookup, the res_search() frunction from glib is
used, function that uses the /etc/resolv.conf file for fetching the
default DNS server.
I guess this function does not have the ability to figure out what's the
direct DNS server and go directly there.
Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 14.01.2015 08:17, Miha wrote:
Hi,
I am using enum module for ported numbers. Everything works fine just
one thing is that is bothering me.
If I use dig to see who is authoritative dns server for one enum zone
I can see that this not not dns server which is set in resolve.conf,
so opensips should be doing this dns request for enum to authoritative
dns server.
I have exactly the same config on nextone sbc and it is sending
request to authoritative dns server for this zone.
How to fix this as now opensips sends request to non authoritative
server for this zone, dns server send it to enum server and then in
oposite direction for resonses which is not ok.
Thx
Miha
trace:
7.476490 opensips -> DNS SERVER DNS 102 Standard query 0x0687 NAPTR
0.5.1.3.0.3.8.1.6.8.3.enumzone.domain.com
7.478184 DNS SERVER -> opensips DNS 143 Standard query response
0x0687 No such name
[root@sip2 ~]# dig enumzone.domain.com NS
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>>
enumzone.domain.com NS
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42310
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;enumzone.domain.com. IN NS
;; ANSWER SECTION:
enumzone.domain.com. 239 IN NS ns1.enum.domain.com.
;; ADDITIONAL SECTION:
ns1.enum.domain.com. 251 IN A ENUM_SERVER
;; Query time: 0 msec
;; SERVER: DNS SERVER#53(DNS SERVER)
;; WHEN: Wed Jan 14 07:05:28 2015
;; MSG SIZE rcvd: 75
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users