open-menu closeme
Engineering
github linkedin rss
  • Don't Append a Trailing Dot to Domain Names in Software You Ship to Customers

    calendar Jun 10, 2026 · 6 min read · DNS  ·
    Share on: twitter copy

    If you build software that runs in someone else's environment, anything that isn't a SaaS you operate yourself, there's a small, innocent-looking line of code you should think twice about writing: 1hostname = hostname + "." Appending a trailing dot to a domain name before you resolve it feels "more …


    Read More

Peng Zhang

Software Engineer

Recent Posts

  • Don't Append a Trailing Dot to Domain Names in Software You Ship to Customers
  • How cgo silently disables Go's deadlock detector
  • Replacing socat with systemd-socket-proxyd
  • You probably want to disable cgo: Go's stdlib has pure-Go implementations
  • Who killed my service: collecting kernel kill logs with OTEL
  • Avoid using 2D map for transition table in Go
  • cached-imds-client: cache static IMDS responses to avoid linklocal_allowance_exceeded on EC2
  • Using WaitGroup to Track Work Items, Not Workers: A Multi-threaded BFS Example

Tags

GO 21 LINUX 20 ALGORITHMS 8 BOTTLEROCKET 7 INTERVIEW 7 CONTAINER 5 CONCURRENCY 3 GUIDE 3 SYSTEMD 3 AWS 2 DISTRIBUTED SYSTEM 2 SELINUX 2 WEB 2 CRYPTOGRAPHY 1
All Tags
ALGORITHMS8 AWS2 BOTTLEROCKET7 CONCURRENCY3 CONTAINER5 CRYPTOGRAPHY1 DATABASES1 DISTRIBUTED SYSTEM2 DNS1 DOCKER1 EC21 GO21 GUIDE3 INTERVIEW7 LINUX20 SELINUX2 SHELL1 SYSTEMD3 TESTING1 WEB2
[A~Z][0~9]
Peng Zhang

Copyright 2022-  PENG ZHANG. All Rights Reserved

to-top