Compare commits
4 Commits
various_im
...
master
Author | SHA1 | Date |
---|---|---|
opinux | 87c648e7bd | |
opinux | 8c086d3194 | |
Philipp Böhm | 82a5891ba3 | |
陈明 | 7ed078bb78 |
22
README.md
22
README.md
|
@ -6,19 +6,23 @@
|
|||
[![GitHub](https://img.shields.io/github/license/pboehm/ddns?style=flat)](https://github.com/pboehm/ddns)
|
||||
|
||||
|
||||
A self-hosted Dynamic DNS solution similar to DynDNS or NO-IP.
|
||||
A self-hosted Dynamic DNS solution similar to DynDNS or NO-IP based on the
|
||||
[PowerDNS Remote Backend](https://doc.powerdns.com/md/authoritative/backend-remote/).
|
||||
|
||||
You can use a hosted version at [ddns.pboehm.de](https://ddns.pboehm.de/) where you can register a
|
||||
host under the `d.pboehm.de` domain (e.g `test.d.pboehm.de`).
|
||||
<img src="screenshot.png" alt="screenshot" width="500"/>
|
||||
|
||||
**Recent Changes**
|
||||
|
||||
`ddns` has been fully restructured and now uses the PowerDNS
|
||||
[Remote Backend](https://doc.powerdns.com/md/authoritative/backend-remote/) instead
|
||||
of the [Pipe Backend](https://doc.powerdns.com/md/authoritative/backend-pipe/), which
|
||||
is far easier to deploy. It now serves both the frontend and the backend over HTTP using different ports.
|
||||
## ⚠️⚠️⚠️ Note regarding hosted version at `ddns.pboehm.de`
|
||||
|
||||
The old `ddns` source code can be found at the [legacy](https://github.com/pboehm/ddns/tree/legacy) tag.
|
||||
The hosted `ddns` service with custom hosts under the `d.pboehm.de` domain (e.g `test.d.pboehm.de`) is not available
|
||||
anymore! I did not use this service for quite some time and recently there were some issues which resulted in downtime
|
||||
and expiration of all registered hosts.
|
||||
|
||||
### Alternatives
|
||||
|
||||
There is at least one other hosted version of `pboehm/ddns` that
|
||||
[can be found via Google](https://www.google.com/search?q=pboehm%2Fddns+%22DDNS+is+a+project+that+lets+you+host+a+Dynamic+DNS+Service%2C+similar+to+DynDNS%2FNO-IP%2C+on+your+own+servers.%22)
|
||||
or you can host it yourself as described below.
|
||||
|
||||
## How can I update my IP if it changes?
|
||||
|
||||
|
|
|
@ -51,7 +51,13 @@ func (b *Backend) Run() error {
|
|||
|
||||
r.GET("/dnsapi/getDomainMetadata/:name/:kind", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{
|
||||
"result": false,
|
||||
"result": []string{"0"},
|
||||
})
|
||||
})
|
||||
|
||||
r.GET("/dnsapi/getAllDomainMetadata/:name", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{
|
||||
"result": gin.H{"PRESIGNED": []string{"0"}},
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
FROM buildpack-deps:stretch-scm
|
||||
FROM buildpack-deps:bookworm-scm
|
||||
|
||||
# the setup procedure according to https://repo.powerdns.com/ (Debian 9 Stretch)
|
||||
RUN echo "deb [arch=amd64] http://repo.powerdns.com/debian stretch-auth-43 main" > /etc/apt/sources.list.d/pdns.list \
|
||||
&& echo "Package: pdns-*\nPin: origin repo.powerdns.com\nPin-Priority: 600\n" >> /etc/apt/preferences.d/pdns \
|
||||
&& curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add - \
|
||||
&& apt-get -y update \
|
||||
&& apt-get install -y pdns-server pdns-backend-remote \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# the setup procedure according to https://repo.powerdns.com/ (Debian 12 Bookworm)
|
||||
RUN echo "deb [arch=amd64] http://repo.powerdns.com/debian bookworm-auth-49 main" > /etc/apt/sources.list.d/pdns.list \
|
||||
&& echo "Package: pdns-*\nPin: origin repo.powerdns.com\nPin-Priority: 600\n" >> /etc/apt/preferences.d/pdns \
|
||||
&& curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add - \
|
||||
&& apt-get -y update \
|
||||
&& apt-get install -y pdns-server pdns-backend-remote \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY pdns.conf /etc/powerdns/pdns.conf
|
||||
|
||||
|
@ -16,4 +16,4 @@ ENTRYPOINT ["/entrypoint.sh"]
|
|||
|
||||
EXPOSE 53
|
||||
|
||||
CMD ["pdns_server", "--daemon=no"]
|
||||
CMD ["pdns_server", "--daemon=no"]
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 125 KiB |
Loading…
Reference in New Issue