Skip to content
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

JMDNS responds to all Type A resolve hostname messages #259

Open
bszland opened this issue Sep 29, 2023 · 0 comments
Open

JMDNS responds to all Type A resolve hostname messages #259

bszland opened this issue Sep 29, 2023 · 0 comments

Comments

@bszland
Copy link

bszland commented Sep 29, 2023

JMDNS will respond to any Type A/AAAA message it sees. For example, if attempting to resolve a particular hostname w/ avahi

avahi-resolve-host-name --name nodeabc.local

JMDNS will respond regardless of if it's running on nodeabc.

It seems like there's no check for the Query name:

DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);

like there is for service:

if (jmDNSImpl.getLocalHost().getName().equalsIgnoreCase(loname)) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant