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

RFE: Ability to copy a full DNS record to clipboard, or to see its entire string easily (without ellipsizing) #618

Open
nekohayo opened this issue Aug 16, 2023 · 6 comments

Comments

@nekohayo
Copy link

When setting up a website where the DNS / nameserver is hosted elsewhere (ex: at the registrar level), you sometimes need to be able to copy what VirtualMin generates to share it via email or chat or to input it into some other web interface elsewhere.

However, /virtual-server/list_records.cgi (the "DNS Records" page in a virtual server) currently truncates (a.k.a. ellipsizes) long strings in each records, which is particularly problematic for email SPF, DMARC or DKIM.

At least for DKIM there's a workaround where you can also see the full key in the "DomainKeys Identified Mail" configuration page, but for SPF and DMARC it's a pain to try to copy the strings, because even if you click the "Manually edit records" button, the resulting text editor interface doesn't wrap lines and doesn't let you select with the mouse... a direct way to copy a record to the clipboard would be much nicer (and probably easier than providing a multiline UI for showing the full string for the user to manually copy?)

@jcameron
Copy link
Collaborator

That's odd, we shouldn't be truncating long records at all on that page. Can you share a screenshot?

@nekohayo
Copy link
Author

This is what I get on VirtualMin 7.7 on Debian 11, the dashboard reports the UI being Webmin 2.101, Usermin 2.001 and Authentic theme version 21.04:

2023-08-15

@jcameron
Copy link
Collaborator

Oh I see ... although if you're not hosting DNS locally, you should turn off the feature on the Edit Virtual Server page.

Then you can more easily copy and paste from the Suggested DNS Records page.

@nekohayo
Copy link
Author

That's what I had originally done, but if you disable that then you apparently can't configure the SPF and DMARC settings (as I mentioned in #119 (comment) from what I observed yesterday), and those two then don't show up in the Suggested DNS Records page either, if I recall correctly.

The funnier thing is, today I went back to the interface to try to find the "Suggested DNS Records" page and… I couldn't find it at all, even with the search feature, on any (v)server, with or without "DNS domain enabled` in "Enabled features" in "Edit Virtual Server"... somehow something is hiding the "Suggested DNS Records" page completely and I don't know what... It's confusing :)

But yeah, if SPF and DMARC could show up there at all times instead of only DKIM, then that could be a way to approach the problem.

As a side-note: it might also be helpful to cross-link that page with some other pages (not just in the menus, but within the pages) too, to make it easier to find.

@jcameron
Copy link
Collaborator

Ok I think the best solution is for us to make SPF and DMARC settings available even when DNS isn't enabled, which will solve both these problems. I'll look into that for the next release ...

@jcameron
Copy link
Collaborator

So I looked into this a bit more, a found that it is possible to have the SPF and DMARC records included on the Suggested page already. Just make sure they are enabled by default at System Settings -> Server Templates -> Default Settings -> DNS Domain.

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

2 participants