Menu

#127 Sofia Resolver is unable to handle the response from secondary DNS server when Primary is unreachable

SIPit17
open
nobody
None
2
2021-12-15
2021-12-15
No

I am using Sofia resolver libsofia-sip-ua to resolve FQDNs, currently I configured /etc/resolv.conf as

nameserver 2.2.2.2 (Unreachable)
nameserver 10.74.137.221 (Reachable)
I am using sofia synchrnous query with sres_blocking_query API. I see request is going to primary DNS and then secondary DNS, and seeing a response from secondary DNS but sofia lib is unable to handle the response
Its showing POLLERR.
TCPDUMP OUTPUTs :
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
11:54:10.200277 IP 10.174.75.65.59263 > 2.2.2.2.domain: 62235+ A? radius1.example.com. (37)
11:54:10.200288 IP 10.174.75.65.59263 > 2.2.2.2.domain: 62235+ A? radius1.example.com. (37)
11:54:10.200291 IP 10.174.75.65.59263 > 2.2.2.2.domain: 62235+ A? radius1.example.com. (37)
11:54:10.201063 IP 10.174.75.65.21250 > 2.2.2.2.domain: 5568+ PTR? 2.2.2.2.in-addr.arpa. (38)
11:54:10.201067 IP 10.174.75.65.21250 > 2.2.2.2.domain: 5568+ PTR? 2.2.2.2.in-addr.arpa. (38)
11:54:10.201070 IP 10.174.75.65.21250 > 2.2.2.2.domain: 5568+ PTR? 2.2.2.2.in-addr.arpa. (38)
11:54:11.201309 IP 10.174.75.65.19237 > 10.74.137.221.domain: 62235+ A? radius1.example.com. (37)
11:54:11.201318 IP 10.174.75.65.19237 > 10.74.137.221.domain: 62235+ A? radius1.example.com. (37)
11:54:11.201322 IP 10.174.75.65.19237 > 10.74.137.221.domain: 62235+ A? radius1.example.com. (37)
11:54:11.201766 IP 10.74.137.221.domain > 10.174.75.65.19237: 62235- 1/1/1 A 10.174.75.160 (88)
11:54:11.201766 IP 10.74.137.221.domain > 10.174.75.65.19237: 62235
- 1/1/1 A 10.174.75.160 (88)
11:54:11.201766 IP 10.74.137.221.domain > 10.174.75.65.19237: 62235*- 1/1/1 A 10.174.75.160 (88)

Is this bug in sofia resolver code ? Can anyone help on this ?

Thanks.
Saurabha Badhai

Related

Bugs: #127

Discussion

  • Andrey Volk

    Andrey Volk - 2021-12-15

    Sofia-sip migrated to GitHub. Use https://github.com/freeswitch/sofia-sip/issues/new

     
    • SAURABHA KUMAR BADHAI

      Do I need to raise a ticket there in github ?

      Thanks,
      Saurabha

      On Wed, Dec 15, 2021 at 2:50 PM Andrey Volk andywolk@users.sourceforge.net
      wrote:

      Sofia-sip migrated to GitHub. Use
      https://github.com/freeswitch/sofia-sip/issues/new


      Status: open
      Group: SIPit17
      Created: Wed Dec 15, 2021 08:11 AM UTC by SAURABHA KUMAR BADHAI
      Last Updated: Wed Dec 15, 2021 08:11 AM UTC
      Owner: nobody

      I am using Sofia resolver libsofia-sip-ua to resolve FQDNs, currently I
      configured /etc/resolv.conf as

      nameserver 2.2.2.2 (Unreachable)
      nameserver 10.74.137.221 (Reachable)
      I am using sofia synchrnous query with sres_blocking_query API. I see
      request is going to primary DNS and then secondary DNS, and seeing a
      response from secondary DNS but sofia lib is unable to handle the response
      Its showing POLLERR.
      TCPDUMP OUTPUTs :
      tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
      listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144
      bytes
      11:54:10.200277 IP 10.174.75.65.59263 > 2.2.2.2.domain: 62235+ A?
      radius1.example.com. (37)
      11:54:10.200288 IP 10.174.75.65.59263 > 2.2.2.2.domain: 62235+ A?
      radius1.example.com. (37)
      11:54:10.200291 IP 10.174.75.65.59263 > 2.2.2.2.domain: 62235+ A?
      radius1.example.com. (37)
      11:54:10.201063 IP 10.174.75.65.21250 > 2.2.2.2.domain: 5568+ PTR?
      2.2.2.2.in-addr.arpa. (38)
      11:54:10.201067 IP 10.174.75.65.21250 > 2.2.2.2.domain: 5568+ PTR?
      2.2.2.2.in-addr.arpa. (38)
      11:54:10.201070 IP 10.174.75.65.21250 > 2.2.2.2.domain: 5568+ PTR?
      2.2.2.2.in-addr.arpa. (38)
      11:54:11.201309 IP 10.174.75.65.19237 > 10.74.137.221.domain: 62235+ A?
      radius1.example.com. (37)
      11:54:11.201318 IP 10.174.75.65.19237 > 10.74.137.221.domain: 62235+ A?
      radius1.example.com. (37)
      11:54:11.201322 IP 10.174.75.65.19237 > 10.74.137.221.domain: 62235+ A?
      radius1.example.com. (37)
      11:54:11.201766 IP 10.74.137.221.domain > 10.174.75.65.19237: 62235
      - 1/1/1 A 10.174.75.160 (88) 11:54:11.201766 IP 10.74.137.221.domain >
      10.174.75.65.19237: 62235
      - 1/1/1 A 10.174.75.160 (88)
      11:54:11.201766 IP 10.74.137.221.domain > 10.174.75.65.19237: 62235*-
      1/1/1 A 10.174.75.160 (88)

      Is this bug in sofia resolver code ? Can anyone help on this ?

      Thanks.
      Saurabha Badhai


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/sofia-sip/bugs/127/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #127


Log in to post a comment.