Project

General

Profile

Actions

Regression #11938

closed
VG VG

DNS Resolver does not add PTR record for OpenVPN clients

Regression #11938: DNS Resolver does not add PTR record for OpenVPN clients

Added by Viktor Gurov over 5 years ago. Updated almost 5 years ago.

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

100%

Estimated time:
Plus Target Version:
22.01
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}" 

JP Updated by Jim Pingle over 5 years ago Actions #2

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

RB Updated by Renato Botelho about 5 years ago Actions #3

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

PR has been merged. Thanks!

VG Updated by Viktor Gurov about 5 years ago Actions #4

  • % Done changed from 0 to 100

Applied in changeset commit:c7a23ab9400a69b49e6fb09f78d342c972e0d202.

JP Updated by Jim Pingle about 5 years ago Actions #5

  • Subject changed from Unbound does not add PTR record when connecting openvpn client to DNS Resolver does not add PTR record for OpenVPN clients

Updating subject for release notes.

DZ Updated by Danilo Zrenjanin almost 5 years ago Actions #6

  • Status changed from Feedback to Resolved

Tested on the:

2.6.0-DEVELOPMENT (amd64)
built on Fri Oct 08 05:20:25 UTC 2021
FreeBSD 12.2-STABLE

It adds "A/AAAA DNS", PTR, and "A/AAAA without domain part" entries. Ticket resolved.

JP Updated by Jim Pingle almost 5 years ago Actions #7

  • Plus Target Version changed from 21.09 to 22.01
Actions

Also available in: Atom