Skip to content

Commit

Permalink
Do not resolve www
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobg committed Sep 3, 2019
1 parent 7890188 commit f021282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ This software provides:

## What this DNS resolves

* yourdomain.net, www.yourdomain.net: to your server IP, both A and AAAA (if it exists) records.
* yourdomain.net: to your server IP, both A and AAAA (if it exists) records.
* _acme-challenge.yourdomain.net also resolves like this, since it's necessary for the certbot authentication.
* a-b-c-d.yourdomain.net, where a.b.c.d is a valid private network IPV4 (192.168.0.0–192.168.255.255, 172.16.0.0–172.31.255.255 and 10.0.0.0–10.255.255.255): resolves to A record of a.b.c.d. In other words, replace `.` by `-`.
* fe80-[xxx].yourdomain.net: resolves to AAAA record of fe80:[xxx]. In other words, replace `:` by `-`.
* fe80-[xxx].yourdomain.net: resolves to AAAA record of fe80:[xxx]. In other words, replace any `:` by `-`.
* anything else: falls back to another DNS server.

## Security considerations
Expand Down
1 change: 0 additions & 1 deletion dnsserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def resolve(self, request, handler):

# handle the main domain
if (name == confs.BASE_DOMAIN or
name == 'www.' + confs.BASE_DOMAIN or
name == '_acme-challenge.' + confs.BASE_DOMAIN
):
r = RR(
Expand Down

0 comments on commit f021282

Please sign in to comment.