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
d382e28d
Commit
d382e28d
authored
8 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
DNS config update
parent
69ce3858
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/Sdi/dns.xml
+86
-32
86 additions, 32 deletions
Doc/Sdi/dns.xml
with
86 additions
and
32 deletions
Doc/Sdi/dns.xml
+
86
−
32
View file @
d382e28d
...
...
@@ -8,13 +8,6 @@
xmlns:db=
"http://docbook.org/ns/docbook"
>
<title><xref
linkend=
"glo_DNS"
/></title>
<programlisting
language=
"none"
>
TODO:
Zeller:
</programlisting>
<section
xml:id=
"sdiDnsPrelim"
>
<title>
Preliminaries
</title>
...
...
@@ -46,15 +39,45 @@ Zeller:
</listitem>
</itemizedlist>
<programlisting
language=
"none"
>
apt-get install bind9 bind9utils
<glosslist>
<glossentry>
<glossterm>
Install server and utilities
</glossterm>
<glossdef>
<programlisting
language=
"none"
>
apt-get install bind9 bind9utils
</programlisting>
</glossdef>
</glossentry>
<glossentry>
<glossterm>
Configure server startup
</glossterm>
<glossdef>
<para>
Turn off IPv6. Hint from
<filename>
/etc/init.d/bind9
</filename>
:
</para>
<programlisting
language=
"none"
>
# Don't modify this line, change or create /etc/default/bind9.
OPTIONS=""
</programlisting>
<para>
Thus modify
<filename>
/etc/default/bind9
</filename>
:
</para>
<programlisting
language=
"none"
>
OPTIONS="
<emphasis
role=
"bold"
>
-4
</emphasis>
-u bind"
</programlisting>
<tip>
<para>
Most (if not all) server configuration changes require a
daemon restart or at least a configuration file reloading to
become effective:
</para>
<programlisting
language=
"none"
>
service bind9 reload
</programlisting>
</tip>
</glossdef>
</glossentry>
-------------------------------------------------------------------------
vi /etc/default/bind9
# startup options for the server
OPTIONS="-4 -u bind"
-------------------------------------------------------------------------
vim /etc/bind/named.conf.options
options {
<glossentry>
<glossterm>
Global options in
<filename>
/etc/bind/named.conf.options
</filename></glossterm>
<glossdef>
<programlisting
language=
"none"
>
options {
directory "/var/cache/bind";
recursion yes; # enables resursive queries
...
...
@@ -86,10 +109,21 @@ options {
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
-------------------------------------------------------------------------
vim /etc/bind/named.conf.local
zone "mi.hdm-stuttgart.de" {
};
</programlisting>
</glossdef>
</glossentry>
<glossentry>
<glossterm>
Configuring zones
</glossterm>
<glossdef>
<glosslist>
<glossentry>
<glossterm><filename>
/etc/bind/named.conf.local
</filename></glossterm>
<glossdef>
<programlisting
language=
"none"
>
zone "mi.hdm-stuttgart.de" {
type master;
file "/etc/bind/zones/db.mi.hdm-stuttgart.de"; # zone file path
};
...
...
@@ -97,10 +131,16 @@ zone "mi.hdm-stuttgart.de" {
zone "75.62.141.in-addr.arpa" {
type master;
file "/etc/bind/zones/db.141.62.75"; # 141.62.75.0/16 class-C subnet
};
-------------------------------------------------------------------------
vim /etc/bind/zones/db.mi.hdm-stuttgart.de
;
};
</programlisting>
</glossdef>
</glossentry>
<glossentry>
<glossterm><filename>
/etc/bind/zones/db.mi.hdm-stuttgart.de
</filename></glossterm>
<glossdef>
<programlisting
language=
"none"
>
;
; BIND data file
;
$TTL 604800
...
...
@@ -118,12 +158,20 @@ $TTL 604800
; name servers - A records
ns4.mi.hdm-stuttgart.de. IN A 141.62.75.104
www4.mi.hdm-stuttgart.de. IN A 141.62.75.104
-------------------------------------------------------------------------
vim /etc/bind/zones/db.141.62.75
www4.mi.hdm-stuttgart.de. IN A 141.62.75.104
</programlisting>
;
; BIND reverse data file
<tip>
<para>
Read about the
<parameter>
Serial
</parameter>
parameter.
</para>
</tip>
</glossdef>
</glossentry>
<glossentry>
<glossterm><filename>
/etc/bind/zones/db.141.62.75
</filename></glossterm>
<glossdef>
<programlisting
language=
"none"
>
; BIND reverse data file
;
$TTL 604800
@ IN SOA ns4.mi.hdm-stuttgart.de. root.mi.hdm-stuttgart.de. (
...
...
@@ -138,8 +186,13 @@ $TTL 604800
IN NS ns4.mi.hdm-stuttgart.de.
; PTR Records
104 IN PTR sdi4a.mi.hdm-stuttgart.de. ; 141.62.75.104:w
</programlisting>
104 IN PTR sdi4a.mi.hdm-stuttgart.de. ; 141.62.75.104
</programlisting>
</glossdef>
</glossentry>
</glosslist>
</glossdef>
</glossentry>
</glosslist>
</section>
<section
xml:id=
"sdiDnsExercises"
>
...
...
@@ -269,8 +322,9 @@ $TTL 604800
sending a mail to
<code>
xy123@mi.hdm-stuttgart.de
</code>
won't work
since the HdM's mail filters will deliver these mails to the MI mail
server
<code>
mail.mi.hdm-stuttgart.de
</code>
rather than to
<code>
mail.hdm-stuttgart.de
</code>
. In addition both servers will
reject mails having destination addresses differing from
<code>
mail.hdm-stuttgart.de
</code>
(and you probably have no account on
this particular machine). In addition both servers will reject mails
having destination addresses differing from
<code>
...@hdm-stuttgart.de
</code>
or
<code>
...@mi.hdm-stuttgart.de
</code>
respectively.
</para>
</section>
...
...
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