Skip to content

Commit

Permalink
dnsforward: imp docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jan 18, 2022
1 parent 9ed5f53 commit ca2e5fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ TODO(a.garipov): Remove this deprecation, if v0.108.0 is released before the Go

### Fixed

- Incorrectly invalidated service domains ([#4120]).
- Poor testing of domain-specific upstream servers ([#4074]).
- Omitted aliases of hosts specified by another line within the OS's hosts file
([#4079]).
- Incorrectly invalidated service domains ([#4120]).

### Removed

Expand Down
4 changes: 4 additions & 0 deletions internal/dnsforward/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ func (s *Server) processRestrictLocal(ctx *dnsContext) (rc resultCode) {
if err != nil {
log.Debug("dns: parsing reversed addr: %s", err)

// DNS-Based Service Discovery uses PTR records having not an ARPA
// format of the domain name in question. Those shouldn't be
// invalidated. See http://www.dns-sd.org/ServerStaticSetup.html and
// RFC 2782.
name := strings.TrimSuffix(q.Name, ".")
if err = netutil.ValidateSRVDomainName(name); err != nil {
log.Debug("dns: validating service domain: %s", err)
Expand Down

0 comments on commit ca2e5fa

Please sign in to comment.