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

Controlling the contents of DNS-SD SRV records #5071

Closed
efuss opened this issue Jul 26, 2017 · 10 comments
Closed

Controlling the contents of DNS-SD SRV records #5071

efuss opened this issue Jul 26, 2017 · 10 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@efuss
Copy link

efuss commented Jul 26, 2017

In an office environment, it may be undesirable for the DNS-SD SRV records to refer to the .local (mDNS) name of the CUPS server and preferable to hand out a unicast-DNS-resolvable name instead.
We, for instance, resolve cups.math.uni-bonn.de to different addresses (of the same server) for different sets of clients; we also like to control whether that name resolves to an IPv6 address for a given client and suppress special-purpose alias addresses of the server (on which CUPS doesn't listen).

The attached patch tries to address that by introducing a BrowseDNSSDSrvName option.
The patch works (on NetBSD) with mDNSResponder; the Avahi part hasn't even been compile-tested.
dnssd-srv-name.txt

@michaelrsweet michaelrsweet self-assigned this Jul 26, 2017
@michaelrsweet michaelrsweet added the enhancement New feature or request label Jul 26, 2017
@michaelrsweet michaelrsweet added this to the CUPS 2.3.x Release milestone Jul 26, 2017
@michaelrsweet
Copy link
Collaborator

At least with mDNSResponder, the default (NULL) registration should cover both the .local and the fully-qualified domain name for the system (or at least that's how it works on the Mac). But will consider including this in a future release of CUPS to override the default...

@efuss
Copy link
Author

efuss commented Jul 27, 2017 via email

@michaelrsweet
Copy link
Collaborator

OK, looking at the code it appears we already have a hostname for DNS-SD in the code, we just aren't using it for the service registrations. And if the mDNSResponder/Avahi-level hostname hasn't been set (just defaulting to something.local) we use the ServerName value.

So I think just passing DNSSDHostName for our registration will Do The Right Thing.

@michaelrsweet
Copy link
Collaborator

[master c5d2b23] Use the DNS-SD hostname when registering shared printers (Issue #5071)

@efuss
Copy link
Author

efuss commented Nov 2, 2017 via email

@michaelrsweet
Copy link
Collaborator

I actually think you can configure the FQDN for Avahi in the avahi.conf file... Need to look a bit closer at that... mDNSResponder likewise has configuration options to override the default .local hostname...

@efuss
Copy link
Author

efuss commented Nov 2, 2017 via email

@michaelrsweet
Copy link
Collaborator

[master d7b3868] Add support for DNSSDHostName configuration directive (Issue #5071)

@efuss
Copy link
Author

efuss commented Nov 3, 2017 via email

michaelrsweet pushed a commit that referenced this issue Nov 3, 2017
@michaelrsweet
Copy link
Collaborator

Oops, yes. Fixed...

[master 513f1b6] Fix cut/paste error (Issue #5071)

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

No branches or pull requests

2 participants