Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
BIND
BIND
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 580
    • Issues 580
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 113
    • Merge Requests 113
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • BINDBIND
  • Issues
  • #2054

Closed
Open
Opened Jul 28, 2020 by Anand Buddhdev@aabdnn

dig +bufsize=0 sets bufsize to 4096

Summary

When I send a query with dig, and set bufsize to 0, dig appears to ignore this and sets the bufsize to 4096.

BIND version used

9.16.5

Steps to reproduce

Use dig to send such a query:

dig +norec +bufsize=0 ke soa @kenic.anycastdns.cz

What is the current bug behavior?

dig sends an EDNS query with the bufsize set to 4096.

What is the expected correct behavior?

dig should send a non-EDNS query, as described in the man page. Even better, dig should send an EDNS query but with bufsize set to 0, as instructed by the user.

Relevant configuration files

No relevant configuration files.

Relevant logs and/or screenshots

Here is a tcpdump showing how dig has ignored my +bufsize=0 setting, and set the buffer to 4096:

12:48:39.756643 IP (tos 0x0, ttl 64, id 15958, offset 0, flags [none], proto UDP (17), length 59)
    192.168.178.34.51981 > 185.28.194.194.53: [udp sum ok] 8443 [1au] SOA? ke. ar: . OPT UDPsize=4096 (31)

Possible fixes

I don't have enough knowledge of the code to suggest a fix.

Assignee
Assign to
September 2020 (9.11.23, 9.11.23-S1, 9.16.7, 9.17.5)
Milestone
September 2020 (9.11.23, 9.11.23-S1, 9.16.7, 9.17.5) (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: isc-projects/bind9#2054