Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
9c6b0fe5
Commit
9c6b0fe5
authored
1 year ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Zone corrections
parent
6e85cc73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/Sdi/Dns/dns.xml
+54
-41
54 additions, 41 deletions
Doc/Sdi/Dns/dns.xml
with
54 additions
and
41 deletions
Doc/Sdi/Dns/dns.xml
+
54
−
41
View file @
9c6b0fe5
...
...
@@ -200,7 +200,8 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
</section>
<section
xml:id=
"sdiBindInstall"
>
<title>
Installing
<xref
linkend=
"glo_Soft_Bind"
/></title>
<title>
Installing and configuring
<xref
linkend=
"glo_Soft_Bind"
/></title>
<para>
You may follow:
</para>
...
...
@@ -225,33 +226,33 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
</itemizedlist>
<para>
Install the
<productname>
bind9
</productname>
server package on
your
<quote>
a
</quote>
virtual machine. The MI department has
already set
up a
<xref
linkend=
"glo_DNS"
/>
service for
your
first
<quote>
A
</quote>
virtual machine. The MI department has
already set
up a
<xref
linkend=
"glo_DNS"
/>
service for
<code>
mi.hdm-stuttgart.de
</code>
. But regarding upcoming exercises we
want to be able configuring private host aliases.
</para>
<para>
Consider the example virtual machine
<code>
sdi04a.mi.hdm-stuttgart.de
/ 141.62.75.104
</code>
host
ing a
<xref
linkend=
"glo_DNS"
/>
server. Create a complete new zone
describing a
domain sdi4
<code>
.mi.hdm-stuttgart.de
</code>
containing both your
machine's
<code>
sdi
04a
.sdi
4
.mi.hdm-stuttgart.de
</code>
and
<code>
sdi
04b
.sdi
4
.mi.hdm-stuttgart.de
</code>
address records. Your
<xref
<para>
If you are a member of
<abbrev>
e.g.
</abbrev>
group 7
<code>
then
sdi04a.mi.hdm-stuttgart.de
</code>
will
host
your
<xref
linkend=
"glo_DNS"
/>
server. Create a complete new zone
<code>
g7.sdi
.mi.hdm-stuttgart.de
</code>
containing both your
machines
<code>
sdi
a.g7
.sdi.mi.hdm-stuttgart.de
</code>
and
<code>
sdi
b.g7
.sdi.mi.hdm-stuttgart.de
</code>
address records. Your
<xref
linkend=
"glo_DNS"
/>
server should provide at least the following
data:
</para>
<glosslist>
<glossentry>
<glossterm>
Your sdi
4
.mi.hdm-stuttgart.de domain's primary
<glossterm>
Your
g7.
sdi.mi.hdm-stuttgart.de domain's primary
nameserver
</glossterm>
<glossdef>
<para>
Primary name server for domain
<code>
sdi
4
.mi.hdm-stuttgart.de
</code>
.
</para>
<code>
g7.
sdi.mi.hdm-stuttgart.de
</code>
.
</para>
</glossdef>
</glossentry>
<glossentry>
<glossterm>
sdi04a
.sdi
4
.mi.hdm-stuttgart.de
</glossterm>
<glossterm>
vm1.g7
.sdi.mi.hdm-stuttgart.de
</glossterm>
<glossdef>
<para>
Your first machine's host name.
</para>
...
...
@@ -259,7 +260,7 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
</glossentry>
<glossentry>
<glossterm>
sdi04b
.sdi
4
.mi.hdm-stuttgart.de
</glossterm>
<glossterm>
vm2.g7
.sdi.mi.hdm-stuttgart.de
</glossterm>
<glossdef>
<para>
Your second machine's host name.
</para>
...
...
@@ -267,18 +268,19 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
</glossentry>
<glossentry>
<glossterm>
www
4
.sdi
4
.mi.hdm-stuttgart.de and
www4-2
.sdi
4
.mi.hdm-stuttgart.de
</glossterm>
<glossterm>
www
.g7
.sdi.mi.hdm-stuttgart.de and
cloud.g7
.sdi.mi.hdm-stuttgart.de
</glossterm>
<glossdef>
<para>
An (
<code>
CNAME
</code>
) alias to
sdi04a.sdi4.mi.hdm-stuttgart.de.
</para>
<para>
(
<code>
CNAME
</code>
) aliases to
<code>
vm1.g7.sdi.mi.hdm-stuttgart.de
</code>
or
<code>
vm2.g7.sdi.mi.hdm-stuttgart.de
</code>
.
</para>
</glossdef>
</glossentry>
</glosslist>
<para>
All host names (albeit not yet existing) should point to your
virtual machine
'
s IP. This requires setting up a forward zone
virtual machines
'
IP. This requires setting up a forward zone
file.
</para>
<tip>
...
...
@@ -308,14 +310,14 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
</listitem>
<listitem>
<para><code>
www
</code>
4
(Future webserver, see
<xref
<para><code>
www
</code>
(Future webserver, see
<xref
linkend=
"sdiApache"
/>
).
</para>
</listitem>
</itemizedlist>
<para>
Test your configuration using
<code>
dig
</code>
<option>
@
<
your
host-IP
>
</option>
<option>
...
</option>
. You should be able to
resolve e.g.
<code>
www
4
.sdi
4
.mi.hdm-stuttgart.de
</code>
to your local
resolve e.g.
<code>
www
.g7
.sdi.mi.hdm-stuttgart.de
</code>
to your local
host's IP address.
</para>
</section>
...
...
@@ -325,15 +327,15 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
<para>
Define a reverse zone file to answer queries asking for an IP
address' machine name
<abbrev>
i.e.
</abbrev>
resolving
<code>
141.62.75.104
</code>
to
<code>
sdi
04a
.mi.hdm-stuttgart.de
</code>
.
</para>
<code>
vm1.g7.
sdi.mi.hdm-stuttgart.de
</code>
.
</para>
</section>
<section
xml:id=
"sdiDnsForwarder"
>
<title>
Forwarders
</title>
<para>
Enable recursive queries to parent name servers enabling your
name
server to resolve external machines like
<code>
www.w3.org
</code>
by
delegation.
</para>
<para>
Enable recursive queries to parent name servers enabling your
own
private name
server to resolve external machines like
<code>
www.w3.org
</code>
by
delegation.
</para>
<tip>
<para>
You may have to disable
<code>
DNSSEC
</code>
in order to allow
...
...
@@ -344,18 +346,26 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
<section
xml:id=
"sdiBindMx"
>
<title>
Mail exchange record
</title>
<para>
Provide a mail exchange record pointing to mx1.hdm-stuttgart.de.
Test this configuration using dig accordingly.
</para>
<para>
Provide a mail exchange record pointing to
<code>
mx1.hdm-stuttgart.de
</code>
. Test this configuration using
<command>
dig
</command>
accordingly.
</para>
<para>
Caveat: Configuring a client machine using your name server and
sending a mail to
<code>
xy123@sdi04.mi.hdm-stuttgart.de
</code>
won't
work since
<code>
mail.hdm-stuttgart.de
</code>
will reject mails being
sent to any domain other than
<code>
hdm-stuttgart.de
</code>
.
</para>
sending a mail to
<code>
xy123@g7.sdi.mi.hdm-stuttgart.de
</code>
won't
actually work since
<code>
mail.hdm-stuttgart.de
</code>
will reject mails
being sent to any domain other than certain subdomain of
<code>
hdm-stuttgart.de
</code>
.
</para>
</section>
<section
xml:id=
"sdiDnsProjectNameServer"
>
<title>
SDI exercises related
<xref
linkend=
"glo_DNS"
/>
server
</title>
<para>
In this part you'll transfer your current
<xref
linkend=
"glo_DNS"
/>
configuration to a dedicated MI nameserver
<code>
nssdi.mi.hdm-stuttgart.de
</code>
. This one being connected to the
global
<xref
linkend=
"glo_DNS"
/>
system allows for publishing your
records worldwide.
</para>
<figure
xml:id=
"sdiDnsSubdomainPerGroup"
>
<title>
Subdomain per group
</title>
...
...
@@ -374,7 +384,9 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
<listitem>
<para>
Zone edits require a subdomain specific
<code>
hmac
</code>
secret key being provided as
<filename>
dnsupdate.sec
</filename>
file in your course group:
</para>
file in your personal group entry below the
<link
xlink:href=
"https://learn.mi.hdm-stuttgart.de/ilias/goto.php?target=crs_33735"
>
SDI
course
</link>
:
</para>
<screen>
hmac-sha256:mykey.
<emphasis
role=
"red"
>
g7
</emphasis>
:I5sDDS3L1BU...
</screen>
...
...
@@ -387,7 +399,9 @@ hdm-stuttgart.de. 3600 IN NS iz-net-2.hdm-stuttgart.de.</screen>
</listitem>
<listitem>
<para>
Edits become globally visible.
</para>
<para>
Edits become globally visible. Mind the TTL setting: A
higher value means you'll have to wait longer until error
corrections become visible.
</para>
</listitem>
</itemizedlist>
</figure>
...
...
@@ -413,19 +427,18 @@ nextcloud.g7.sdi.mi.hdm-stuttgart.de. 5000 IN CNAME www.g7.sdi.mi.hdm-stuttgart.
goik
>
nsupdate -y $HMAC
>
server nssdi.mi.hdm-stuttgart.de
>
update add
sdi
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de 86400 A 1
72.16.1.1
>
update add
vm
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de 86400 A 1
41.62.75.114
>
send
>
quit
goik
>
dig +noall +answer @nssdi.mi.hdm-stuttgart.de sdi2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de
sdi2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de. 86400 IN A 172.16.1.1
</programlisting>
goik
>
dig +noall +answer @nssdi.mi.hdm-stuttgart.de vm2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de
vm2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de. 86400 IN A 141.62.75.114
</programlisting>
</figure>
<para>
This entry
will
be globally visible:
</para>
<para>
This entry
should now
be globally visible:
</para>
<programlisting
language=
"none"
>
>
dig +noall +answer
sdi
2.
<emphasis
<programlisting
language=
"none"
>
>
dig +noall +answer
vm
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de
sdi
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de. 7069 IN A 1
72.16.1.1
</programlisting>
vm
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de. 7069 IN A 1
41.62.75.114
</programlisting>
<figure
xml:id=
"sdiDnsNsupdateDeleteRecord"
>
<title>
Modify by delete/create
</title>
...
...
@@ -447,11 +460,11 @@ sdi2.<emphasis role="red">g7</emphasis>.sdi.mi.hdm-stuttgart.de. 7069 IN A 172.1
<para>
Due to caching it'll however take up to you
<abbrev>
SOA
</abbrev>
or record specific settings for this deletion to be reflected globally.
The subsequent query result indicates another 7069 seconds to go before
issuing the next
query
:
</para>
issuing the next
update
:
</para>
<programlisting
language=
"none"
>
goik
>
dig +noall +answer
sdi
2.
<emphasis
<programlisting
language=
"none"
>
goik
>
dig +noall +answer
vm
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de
sdi
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de. 7069 IN A 1
72.16.1.1
</programlisting>
vm
2.
<emphasis
role=
"red"
>
g7
</emphasis>
.sdi.mi.hdm-stuttgart.de. 7069 IN A 1
41.62.75.114
</programlisting>
</section>
</section>
</chapter>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment