dns-01 walkthrough #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
How to pass the test
There are 3 tests that will need to pass for 3 domains.
If your domain were "example.co.uk", those domains would be:
example.co.uk
(will need a TXT record_random-thing.example.co.uk
)foo.example.co.uk
(will need a record_random-thing.foo.example.co.uk
)*.foo.example.co.uk
(also needs a_random-thing.foo.example.co.uk
, same as the non-wildcard)With some DNS services you'll get a oversimplified API and you'll be able to do something like this:
However, with most of them you'll need to do something like this:
How DNS APIs are structured
DNS Records are grouped into DNS Zones.
The most common grouping happens to be a "Domain"
Hence we have "http://example.com " with the TLD .com but we also have "http://example.co.uk " with the "TLD" .co.uk.
A "Second-Level" Domain
When you buy a domain, the service you buy it from typically sets up a DNS Zone for you.
If you bought
example.com
then you might want to set up domains such as:The records in the default zone would be
Where does a Record go?
In order set a record, you have to know which zone it belongs to.
Consider the following:
How would a computer determine the zone?
Tt's a trick question - a computer can't. A human can - because we understand the political conventions - but a computer can only know by asking.
You might think you just count 2 parts, after all, but that would be wrong because:
In truth, a "Zone" is just a hierarchical collection of records - such as "everything under example.com" or "everything under foo.bar.example.com". There are common political conventions, but the technical specification is quite generic.
The Process
foo.bar.example.com
becomes a recordfoo.bar
for the zoneexample.com
Well, that's the process for
set
, butget
andremove
are pretty similar - you can figure it out.