Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDDE21 DRIP 2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Viktor Norgren
TDDE21 DRIP 2023
Commits
10b290f4
Commit
10b290f4
authored
1 year ago
by
Martin Larsson
Browse files
Options
Downloads
Patches
Plain Diff
Update file README.md
parent
2d64ae26
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
drip-backend-dns/README.md
+18
-17
18 additions, 17 deletions
drip-backend-dns/README.md
with
18 additions
and
17 deletions
drip-backend-dns/README.md
+
18
−
17
View file @
10b290f4
...
...
@@ -9,14 +9,14 @@ This guide provides step-by-step instructions to set up a local DNS server using
```
shell
sudo
apt update
sudo
apt
install
bind9 bind9utils bind9-doc
```
### 2. Configure Local Zone
-
Create and configure a zone file (e.g., 'db.drones.local') in '/etc/bind/':
```
shell
sudo
nano /etc/bind/db.drones.local
```
-
Add basic DNS records. Example zone file contents:
```
shell
;
;
BIND data file
for
local
drones
;
...
...
@@ -30,34 +30,35 @@ $TTL 604800
;
@ IN NS ns.drones.local.
ns IN A 127.0.0.1
```
### 3. Update BIND9 Configuration
-
Update '/etc/bind/named.conf.local' to include the local zone:
```
shell
sudo
nano /etc/bind/named.conf.local
```
-
Add:
```
shell
zone
"drones.local"
{
type
master
;
file
"/etc/bind/db.drones.local"
;
}
;
```
### 4. Start and Enable BIND9
```
shell
sudo
systemctl start named
sudo
systemctl
enable
named
```
### 5. Test DNS Resolution
-
Add a drone record to 'db.drones.local':
```
shell
drone1 IN A 192.168.1.2
```
-
Test thee DNS resolution with 'dig':
```
shell
dig @localhost drone1.drones.local
```
-
Expected output should include:
```
shell
;;
ANSWER SECTION:
drone1.drones.local. 604800 IN A 192.168.1.2
\ No newline at end of file
drone1.drones.local. 604800 IN A 192.168.1.2
```
\ No newline at end of file
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