[asterisk-bugs] [JIRA] (ASTERISK-28004) PjSIP dns breaks when using ::1 in /etc/resolv.conf
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Mon Aug 6 17:15:54 CDT 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=244429#comment-244429 ]
Asterisk Team commented on ASTERISK-28004:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> PjSIP dns breaks when using ::1 in /etc/resolv.conf
> ---------------------------------------------------
>
> Key: ASTERISK-28004
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28004
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: pjproject/pjsip
> Affects Versions: 13.22.0
> Environment: CentOS 7.4 64bit
> Reporter: Isaac McDonald
> Labels: pjsip
>
> PJSIP DNS resolution breaks when using the IPv6 loopback address as a nameserver in /etc/resolve.conf.
> Steps to reproduce: Note that the hostname used in the AOR had a TTL of 60 seconds during my testing to force pjsip not to cache the results
> 1. Install dnsmasq "yum install dnsmasq"
> 2. create /etc/dnsmasq.d/dns.conf and add the following:
> listen-address=::1,127.0.0.1
> no-resolv
> server=1.1.1.1
> 3. Set nameserver in /etc/resolv.conf to IPv6 localhost address:
> nameserver ::1
> 4. Create a pjsip trunk to register with a hostname in the aor. example:
> contact=sip:someuser at testhost.example.com:5060
> 5. Note how SIP registrations to the sip trunk fail. Note how calls via the trunk also fail. It may take a few minutes before you get failures.
> 6. Note the following messages in the asterisk log:
> 'No working DNS nameserver (PJLIB_UTIL_EDNSNOWORKINGNS)' sending OPTIONS request to endpoint
> 7. Change the nameserver in /etc/resove.conf to:
> nameserver 127.0.0.1
> 8. Reload asterisk "asterisk -rx"core reload"
> 9. Note how the trunk created in step 4 registers. Calls placed via the trunk also complete.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list