mirror of
https://github.com/spatie/dnsrecords.io.git
synced 2026-04-27 08:25:57 +03:00
[PR #47] [CLOSED] Add ability to filter by record type #50
Labels
No labels
bug
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dnsrecords.io#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spatie/dnsrecords.io/pull/47
Author: @casperboone
Created: 10/15/2018
Status: ❌ Closed
Base:
master← Head:filter-by-type📝 Commits (1)
b2f94d5Add ability to filter by record type📊 Changes
3 files changed (+67 additions, -4 deletions)
View changed files
📝
app/Services/Commands/Commands/DnsLookup.php(+30 -3)📝
app/Services/Commands/Commands/Manual.php(+1 -0)📝
tests/Feature/DnsLookupTest.php(+36 -1)📄 Description
This PR adds the ability to filter the DNS records list by type.
Examples of input are
spatie.be Aorspatie.be A MX.For now I've copied the list of supported record types from
Spatie\Dns\Dnsto theDnsLookupclass since it's not accessible. I will propose a change to spatie/dns for this in that repo.The tests have become a bit more concrete. I don't think the extra assumptions I made will be an issue (A, NS and SOA records should always exist), but wanted to mention this explicitly.
I'm not sure what's the best 'look' for the URLs yet. Currently it's just
https://dnsrecords.io/spatie.be mx. An alternative would behttps://dnsrecords.io/spatie.be/mx, however when multiple filtering rules are applied this would become something likehttps://dnsrecords.io/spatie.be/mx/nswhich does not make much sense in my opinion. Ideas about this are welcome :)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.