• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / dot-block / 20411149028
43%

Build:
DEFAULT BRANCH: main
Ran 21 Dec 2025 02:21PM UTC
Jobs 1
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Dec 2025 02:20PM UTC coverage: 50.69% (-2.3%) from 53.018%
20411149028

push

github

web-flow
feat: add support for regular DNS on port 53 (#48)

* feat: add support for regular DNS on port 53

*   Implement standard UDP and TCP DNS listeners alongside the existing
    DoT service.
*   Add a new `--dns-port` flag (defaulting to 53) to allow
    configuration of the regular DNS interface.
*   Refactor server lifecycle management using `errgroup` to
    concurrently run HTTP, UDP DNS, TCP DNS, and DoT listeners.
*   Update `GEMINI.md` and `README.md` with instructions for testing
    both regular DNS and DoT in production and development modes.

```mermaid
graph TD
    Main[App RunServer] --> Group[errgroup]
    Group --> HTTP[HTTP Server:80]
    Group --> UDP[UDP DNS:53]
    Group --> TCP[TCP DNS:53]
    Group --> DoT[DoT Server:853]

    HTTP --> ACME[ACME/Metrics/Health]
    UDP --> Dispatcher[DNS Dispatcher]
    TCP --> Dispatcher
    DoT --> Dispatcher
    Dispatcher --> Cache[DNS Cache]
    Dispatcher --> Forwarder[Upstream Forwarder]
```

* refactor: unify DNS and DoT server startup

Refactor the server initialization to reduce duplication and improve
readability.

- Consolidate **DoT** server logic into a single goroutine.
- Use integer variables for port logging to avoid redundant formatting.
- Rename the `errgroup` variable from `g` to `group`.

```mermaid
graph TD
    A[RunServer] --> B{app.DevMode?}
    B -->|Yes| C[Set Dev Ports]
    B -->|No| D[Set Standard Ports]
    C & D --> E[Start HTTP, UDP, TCP Servers]
    C & D --> F[Start DoT Goroutine]
    F --> G{app.DevMode?}
    G -->|Yes| H[Network: tcp]
    G -->|No| I[Network: tcp-tls + Cert Config]
```

* feat: add dot-port flag and simplify port logic

- Add a new `--dot-port` flag to customize the DoT listening port.
- Centralize port initialization in `main.go` to separate CLI concerns
  from internal application logic.
- Improve `DEV_MODE` behavior by allowing explicit port overrides via
  command-line arguments.

0 of 57 new or added lines in 2 files covered. (0.0%)

17 existing lines in 1 file now uncovered.

404 of 797 relevant lines covered (50.69%)

0.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
17
0.0
0.0% main.go
40
0.0
0.0% internal/app.go

Uncovered Existing Lines

Lines Coverage ∆ File
17
0.0
0.0% internal/app.go
Jobs
ID Job ID Ran Files Coverage
1 20411149028.1 21 Dec 2025 02:21PM UTC 13
50.69
GitHub Action Run
Source Files on build 20411149028
  • Tree
  • List 13
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ae4dbd54 on github
  • Prev Build on main (#20395746582)
  • Next Build on main (#20493024289)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc