fix mardown

master
lurchi 2018-11-05 12:30:44 +01:00
parent 4bb918bb6e
commit 45a9c63dc8
1 changed files with 10 additions and 10 deletions

View File

@ -17,27 +17,27 @@ TBD
# Configuration # Configuration
The configuration options are described in `homeserverdns.cfg`. First a protocol has to be defined, e.g. The configuration options are described in `homeserverdns.cfg`. First a protocol has to be defined, e.g.
`` ```
protocol=gandi protocol=gandi
`` ```
For authentication at the domain provider, an authentication token has to be geven. Some protocols require a user name and an API address, too. For authentication at the domain provider, an authentication token has to be geven. Some protocols require a user name and an API address, too.
`` ```
auth_key=g5Hdsfkj5J49li8HH3jfhsJp auth_key=g5Hdsfkj5J49li8HH3jfhsJp
user= # not required for gandi user= # not required for gandi
api_address= # not required for gandi api_address= # not required for gandi
`` ```
Now the domains (and subdomains) we want to update A and AAAA records for have to be defined. Now the domains (and subdomains) we want to update A and AAAA records for have to be defined.
`` ```
domains=mydomain.com sub.mydomain.com domains=mydomain.com sub.mydomain.com
`` ```
By default `UPNP` is used for detecting the server's public IPv4 address. So we should check if upnp works and returns the correct IPv4 address. By default `UPNP` is used for detecting the server's public IPv4 address. So we should check if upnp works and returns the correct IPv4 address.
`` ```
$ upnpc -s $ upnpc -s
upnpc : miniupnpc library test client, version 1.9. upnpc : miniupnpc library test client, version 1.9.
(c) 2005-2016 Thomas Bernard. (c) 2005-2016 Thomas Bernard.
@ -56,10 +56,10 @@ MaxBitRateDown : 10000000 bps (10.0 Mbps) MaxBitRateUp 1000000 bps (1.0 Mbps)
ExternalIPAddress = 85.98.82.44 ExternalIPAddress = 85.98.82.44
Bytes: Sent: 402633281 Recv: 816703147 Bytes: Sent: 402633281 Recv: 816703147
Packets: Sent: 3408416 Recv: 4216845 Packets: Sent: 3408416 Recv: 4216845
`` ```
If we don't get a value for `ExternalIPAddress`, we should check our router and firewall settings. If `UPNP` does not work for us (e.g. in case the server is behind a Carrier Grade NAT), we can define our own method for looking up our public IPv4 address using the `public_ip4_hook` config option, e.g. If we don't get a value for `ExternalIPAddress`, we should check our router and firewall settings. If `UPNP` does not work for us (e.g. in case the server is behind a Carrier Grade NAT), we can define our own method for looking up our public IPv4 address using the `public_ip4_hook` config option, e.g.
`` ```
public_ip4_hook=curl -s -4 https://ipecho.net/plain public_ip4_hook=curl -s -4 https://ipecho.net/plain
`` ```