Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Multiple records with same type not supported in v1.0.0rc1 #4

Closed
Torxed opened this issue Jul 19, 2020 · 0 comments
Closed

Multiple records with same type not supported in v1.0.0rc1 #4

Torxed opened this issue Jul 19, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Torxed
Copy link
Owner

Torxed commented Jul 19, 2020

Take NS records for instance, which can have multiple entries for one domain. Currently as it stands, because we're using dict for the storage facility, there can't be multiple keys.

The solution will be to add multiple dict values in a list like this:

@dns.records
def records(server):
	return {
		"example.com" : {
			"A" : {"target" : "264.30.198.2", "ttl" : 60},
			"SOA" : {"target" : "example.com", "ttl" : 60},
			"NS" : [{"target" : "ns1.example.com", "priority" : 10}, {"target" : "ns2.example.com", "priority" : 10}]
		}
	}

Some glue magic will have to be implemented in the slimDNS.lib.abstracts.dns.NS() abstract function.

@Torxed Torxed added bug Something isn't working enhancement New feature or request labels Jul 19, 2020
@Torxed Torxed closed this as completed in 31858bd Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant