Skip to content

RDKCOM-5586: RDKBDEV-3442 DNS Port 53 found to be open on non-relevant interfaces in CM - #315

Open
aprasad-97 wants to merge 1 commit into
rdkcentral:developfrom
aprasad-97:RDKBDEV-3442
Open

RDKCOM-5586: RDKBDEV-3442 DNS Port 53 found to be open on non-relevant interfaces in CM#315
aprasad-97 wants to merge 1 commit into
rdkcentral:developfrom
aprasad-97:RDKBDEV-3442

Conversation

@aprasad-97

Copy link
Copy Markdown
Contributor

Reason for change: When bind-dynamic option is enabled in dnsmasq.conf, the DNS ports were dynamically bound to the active interface IPs. As a result, port 53 is no longer observed as open on non-relevant interfaces.
Risks: Low
Signed-off-by: Aiswarya Prasad aprasad@maxlinear.com

@aprasad-97
aprasad-97 requested review from a team as code owners May 13, 2026 10:29
@pradeeptakdas pradeeptakdas changed the title RDKBDEV-3442 - DNS Port 53 found to be open on non-relevant interfaces in CM RDKCOM-5586: RDKBDEV-3442 DNS Port 53 found to be open on non-relevant interfaces in CM May 14, 2026
@AkhilaReddyK7 AkhilaReddyK7 added the community-contribution Contribution from community label May 18, 2026
fi

#echo "interface=$LAN_IFNAME" >> $LOCAL_DHCP_CONF
echo "bind-dynamic" >> $LOCAL_DHCP_CONF

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are already passing bind-dynamic as an argument to dnsmasq. If it is not handled in some scenarios, please fix that. Otherwise, remove bind-dynamic from the arguments and keep it only in the configuration file. We should not maintain this option in both the config file and the dnsmasq arguments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@snayak002c , May I know whether bind-dynamic is passed as an argument on bpi? I can see that its enabled only to specific platforms. https://github.com/rdkcentral/utopia/blob/main/source/service_dhcp/service_dhcp_server.c#L308

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aprasad-97 Its not an argument on BPI, Please make it available for all platforms. Either we can keep it in config file or pass it as an argument. Since we are passing it as argument for some platforms please see if we can enable it for all the platforms that way itself.Component owner is asking not to keep it as part of both.

@pradeeptakdas

Copy link
Copy Markdown

Hi @aprasad-97

Please fix the review comments

…s in CM

Reason for change: When bind-dynamic option is enabled in dnsmasq.conf, the DNS ports were dynamically bound to the active interface IPs. As a result, port 53 is no longer observed as open on non-relevant interfaces.
Risks: Low
Signed-off-by: Aiswarya Prasad <aprasad@maxlinear.com>
Copilot AI review requested due to automatic review settings July 27, 2026 15:07
@github-actions

Copy link
Copy Markdown

📋 PR Format Reminder

  • Description missing:
    • Test Procedure
    • Priority (P0 / P1 / P2)

Expected:

TICKET-123 : brief description

Reason for change: why
Test Procedure: how to verify
Risks: Low / Medium / High
Priority: P0 / P1 / P2

@tinaelizabeth84

Copy link
Copy Markdown

Hi @aprasad-97 Could you please address the review comments?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables dynamic interface binding in the generated dnsmasq.conf so dnsmasq binds DNS (port 53) only to active/relevant interface IPs, reducing exposure on non-relevant interfaces.

Changes:

  • Add bind-dynamic to the dnsmasq configuration generated by the DHCP/DNS service script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fi

#echo "interface=$LAN_IFNAME" >> $LOCAL_DHCP_CONF
echo "bind-dynamic" >> $LOCAL_DHCP_CONF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contribution from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants