Skip to content

Commit 4a65fc1

Browse files
Create dns.md
1 parent 4d88d76 commit 4a65fc1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

dns.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# DNS
2+
The Edge Router can function as a little DNS Server. But keep in mind that this is only a basic DNS Server. You can only configure A Records.
3+
4+
## enable DNS
5+
Which Interface should be allowed to query the DNS Server ?
6+
7+
```bash
8+
set service dns forwarding listen-on eth2.10
9+
set service dns forwarding listen-on eth2.20
10+
set service dns forwarding listen-on eth2.30
11+
set service dns forwarding listen-on eth2
12+
```
13+
14+
## add an entry
15+
You just need the IP Address and the hostname. You have to give the "static-host-mapping" a name. In this case it's `cgn-qemu-01` but this has nothing to do with the DNS name.
16+
Just make sure that this is unique.
17+
18+
```bash
19+
set system static-host-mapping host-name cgn-qemu-01 alias cgn-qemu-01.example.com
20+
set system static-host-mapping host-name cgn-qemu-01 inet 10.10.99.130
21+
```
22+
23+
You can also have more then one Hostname pointing to one IP Address
24+
25+
```bash
26+
set system static-host-mapping host-name cgn-vm-win10 alias cgn-vm-win10.example.com
27+
set system static-host-mapping host-name cgn-vm-win10 alias cgn-win-mgmt.example.com
28+
set system static-host-mapping host-name cgn-vm-win10 alias prtg.example.com
29+
set system static-host-mapping host-name cgn-vm-win10 inet 10.10.99.111
30+
31+
```

0 commit comments

Comments
 (0)