Thanks to visit codestin.com
Credit goes to github.com

Skip to content

VR: add bind-interfaces to /etc/dnsmasq.d/cloud.conf #10739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

weizhouapache
Copy link
Member

Description

This PR fixes #10733

prior to this change, dnsmasq listens on 0.0.0.0:53, so other services (e.g haproxy) cannot use port 53 of public IPs.
with this change, dnsmasq listens only on the guest interface

root@r-1366-VM:~# netstat -an |grep :53
tcp        0      0 172.16.1.1:53           0.0.0.0:*               LISTEN     
udp        0      0 172.16.1.1:53           0.0.0.0:*    

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copy link

codecov bot commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.17%. Comparing base (f13cf59) to head (8040fc2).
Report is 6 commits behind head on 4.19.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.19   #10739   +/-   ##
=========================================
  Coverage     15.17%   15.17%           
- Complexity    11332    11333    +1     
=========================================
  Files          5415     5415           
  Lines        474893   474893           
  Branches      57920    57920           
=========================================
+ Hits          72046    72049    +3     
+ Misses       394792   394790    -2     
+ Partials       8055     8054    -1     
Flag Coverage Δ
uitests 4.28% <ø> (ø)
unittests 15.89% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13096

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-13045)

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

lgtm. Patch works as expected.

Before

$ netstat -ntlp | grep 53
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      2696/dnsmasq        
tcp6       0      0 :::53                   :::*                    LISTEN      2696/dnsmasq

After

$ netstat -ntlp | grep 53
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      57227/dnsmasq       
tcp        0      0 172.30.0.2:53           0.0.0.0:*               LISTEN      57227/dnsmasq

@DaanHoogland DaanHoogland merged commit f2e688a into apache:4.19 Apr 18, 2025
25 checks passed
@DaanHoogland DaanHoogland deleted the 4.19-vr-dnsmasq-bind-interfaces branch April 18, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

haproxy failed when create a Load balancer with public port 53
4 participants