Project

General

Profile

Actions

Regression #11938

open

Unbound does not add PTR record when connecting openvpn client

Added by Viktor Gurov 2 months ago. Updated 24 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
OpenVPN
Target version:
Start date:
05/20/2021
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
21.09
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

After changes in #11129 openvpn.learn-address.sh uses the 'unbound-control local_data' command to add client A/AAAA DNS records,
but it doesn't add PTR and "A/AAAA without domain part" records:

# do not restart unbound on connect, see https://redmine.pfsense.org/issues/11129
/usr/bin/su -m unbound -c "unbound-control -c /var/unbound/unbound.conf local_data ${CN}.${DOMAIN} ${ARECORD} ${IP}" 

it creates the correct 'openvpn.client.${IP}.conf' file:

# Add new local-data entry.
(
    echo "local-data-ptr: \"${IP} ${CN}.${DOMAIN}\"" &&
    echo "local-data: \"${CN}.${DOMAIN} ${ARECORD} ${IP}\"" &&
    echo "local-data: \"${CN} ${ARECORD} ${IP}\"" 
) > "${TMPCONF}" 

Actions #2

Updated by Jim Pingle 2 months ago

  • Status changed from New to Pull Request Review
  • Target version set to 2.6.0
  • Plus Target Version set to 21.09
Actions #3

Updated by Renato Botelho 24 days ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov

PR has been merged. Thanks!

Actions #4

Updated by Viktor Gurov 24 days ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF