roughed in subdomains

This commit is contained in:
David Kennedy 2023-10-02 10:23:04 -04:00
parent 5af1143f55
commit 8bc0c9486b
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
7 changed files with 40 additions and 2 deletions

View file

@ -90,6 +90,11 @@ urlpatterns = [
views.DomainNameserversView.as_view(),
name="domain-nameservers",
),
path(
"domain/<int:pk>/subdomains",
views.DomainSubdomainsView.as_view(),
name="domain-subdomains",
),
path(
"domain/<int:pk>/dnssec",
views.DomainDNSSECView.as_view(),

View file

@ -14,7 +14,8 @@
{% url 'domain-nameservers' pk=domain.id as url %}
<p><a href="{{ url }}">DNS name servers</a></p>
<p><a href=>Subdomain records</a></p>
{% url 'domain-subdomains' pk=domain.id as url %}
<p><a href="{{ url }}">Subdomain records</a></p>
{% url 'domain-dnssec' pk=domain.id as url %}
<p><a href="{{ url }}">DNSSEC</a></p>

View file

@ -7,6 +7,6 @@
<h1>DNSSEC</h1>
<p>DNSSEC, or DNS Security Extensions, is additional security layer to protect your website. Enabling DNSSEC ensures that when someone visits your website, they can be certain that it's connecting to the correct server, preventing potential hijacking or tampering with your domain's records. <a href="unknownref">Read more about DNSSEC and why it is important.</a></a></p>
<p>DNSSEC, or DNS Security Extensions, is additional security layer to protect your website. Enabling DNSSEC ensures that when someone visits your website, they can be certain that it's connecting to the correct server, preventing potential hijacking or tampering with your domain's records. <a href="https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en">Read more about DNSSEC and why it is important.</a></p>
{% endblock %} {# domain_content #}

View file

@ -29,6 +29,14 @@
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-subdomains' pk=domain.id as url %}
<a href="{{ url }}"
{% if request.path == url %}class="usa-current"{% endif %}
>
Subdomain records
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-dnssec' pk=domain.id as url %}
<a href="{{ url }}"

View file

@ -0,0 +1,16 @@
{% extends "domain_base.html" %}
{% load static field_helpers url_helpers %}
{% block title %}Subdomain records | {{ domain.name }} | {% endblock %}
{% block domain_content %}
<h1>Subdomain records</h1>
<p>Subdomains allow you to host multiple services under the same domain and create subsets of your website. For example, blogs are often set up as a subdomain (blog.example.gov).</p>
<p>Subdomains cannot be requested through the .gov registrar. Those must be set up ... NEED ADDITIONAL COPY HERE</p>
<p>If you use subdomains, enter those records (also known as glue records) below.</p>
{% endblock %} {# domain_content #}

View file

@ -5,6 +5,7 @@ from .domain import (
DomainOrgNameAddressView,
DomainDNSView,
DomainNameserversView,
DomainSubdomainsView,
DomainDNSSECView,
DomainYourContactInformationView,
DomainSecurityEmailView,

View file

@ -214,6 +214,13 @@ class DomainNameserversView(DomainPermissionView, FormMixin):
return super().form_valid(formset)
class DomainSubdomainsView(DomainPermissionView):
"""Domain subdomains editing view."""
template_name = "domain_subdomains.html"
class DomainDNSSECView(DomainPermissionView):
"""Domain DNSSEC editing view."""