Skip to content

Commit

Permalink
docs: add cname explaination
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarow committed Aug 25, 2024
1 parent 8b6c988 commit f4b6006
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ dns:

# Static domain configuration (optional)
domains:
- name: "*.somedomain.com"
- name: "*.somedomain.com" # IPs for A and AAAA records will be determined dynamically

- name: "somedomain.com"
a: 10.0.0.2
aaaa: ::1
a: 10.0.0.2 # Static IPv4 address
aaaa: ::1 # Static IPv6 address

- name: "alt.somedomain.com"
cname: "main.somedomain.com"
- name: "alt.somedomain.com" # Name of the CNAME record
cname: "main.somedomain.com" # Target of the CNAME record
```
## Dynamic Domains
Expand All @@ -59,7 +59,7 @@ Supported labels:
| dockdns.name | dockdns.name=somedomain.com |
| dockdns.a | dockdns.a=127.0.0.1 |
| dockdns.aaaa | dockdns.aaaa=::1 |
| dockdns.cname | dockdns.cname=someotherdomain.com |
| dockdns.cname | dockdns.cname=target.otherdomain.com |
| dockdns.ttl | dockdns.ttl=600 |
| dockdns.proxied | dockdns.proxied=false |
Expand Down

0 comments on commit f4b6006

Please sign in to comment.