---
# System prepended metadata

title: DNSD

---

# DNSD



# Prerequisite

- C18
- Make
- gcc
- pyhton3 (testsuite)
- Pyhton3-pip (testsuite)

# Install

```bash
$ make 
```

# Run

```bash
$ ./dnsd <Server-config-file>
```

# Format

```bash
$ make format
```

# Tests

```bash
$ make check #unitary test
$ make integration # integrations test
```

# Server conf file 



| Key | Description |
| -------- | -------- |
| ipv4    | DNS server ipv4    |  
| ipv6    | DNS server ipv6     | 
| tcp_port    | DNS server tcp listen port     | 
| udp_port    |   DNS server tcp listen port    |
| dns_zone    | Path of zone's conf file  | 

## Example 

```
ipv4 = 127.0.0.1
ipv6 = ::1
tcp_port = 53
udp_port = 53
dns_zone = dns.conf

```


# Zone conf file example

```
example.com;SOA;3600;ns0.example.com. postmaster.example.com. 2020092501 86400 3600 604800 3600
example.com;NS;86400;ns0.example.com.
example.com;NS;86400;ns1.example.com.
example.com;A;3600;192.0.2.1
example.com;TXT;10;Hello there\; how are you?
ent.sub.example.com;TXT;86400;broken ENT was here !
www.example.com;AAAA;7200;2001:DB8::1
www-dev.example.com;CNAME;7200;www.example.com.
ns0.example.com;A;86400;192.0.2.3
ns1.example.com;A;7200;192.0.2.4
sub.zone.example.com;NS;86400;ns1.sub.zone.example.com.
ns1.sub.zone.example.com;A;86400;192.0.2.42
ns1.sub.zone.example.com;AAAA;86400;2001:DB8::42
ns2.sub.zone.example.com;A;86400;192.0.2.84
ns2.sub.zone.example.com;AAAA;86400;2001:DB8::84
ns2.sub.zone.example.com;AAAA;86400;2001:DB8::84

```