Comments (12)
Hi
I started with the implementation of dns.
I've got one question about dhcp.
Is it ok to replicate dzcp settings and have mor than one dhcp running in one network?
from adguardhome-sync.
If you look at this serverfault question about "Can I have multiple DHCP servers on one network?", you see that this is no problem as long as you follow some rules.
If you wanna use DHCP reservations, like I do, there is absolutely no problem in having multiple DHCP servers, as the first one 'wins' and returns the answer to the client. In this case however it is very important to keep the reservations in sync. Hence my request 😄
Some others use a split scope solution, ie the first DHCP server serves the .100-.150 range and the second the .151-.200 range in the same subnet. This is mostly advised if not using DHCP reservations.
I hope that clarifies your question!
So I use AGH for:
- DNS rewrites assign a subdomain to a static IP address (already covered by adguardhome-sync)
- The DHCP server uses reserverations for each device/computer om my network. (this feature request)
This means I can address all devices with a specific subdomain.
Note: as described in the request: I think it is wise to make the DHCP replication an option for ppl that can't or won't use two DHCP servers...
from adguardhome-sync.
Hi @MarsWarrior
I implemented a first rc with the new features.
https://github.com/bakito/adguardhome-sync/releases/tag/v0.3.0-rc1
The new features are currently not enabled by default.
you can enable them by adding the arg --beta dns,dhcp
or with env variable BETA=dns,dhcp
I'm not done with writing all the unit tests, but wanted to give you the opportunity to test the features before I make the release.
Please let me know if the features cover your use-cases.
KR,
Marc
from adguardhome-sync.
Great!
Are you able to push a docker image to quay.io/bakito/adguardhome-sync ?
I'm using docker 😄
I see there is a new image just pushed with the label "main", but I doubt that is the RC version?
from adguardhome-sync.
Oops, forgot to sign in as me on this computer 😊
from adguardhome-sync.
The image is there now.
It just takes a wile to have it built, since the action runns after the release it published.
from adguardhome-sync.
Well, sofar, so good:
2021-05-29T08:20:39.302Z INFO sync sync/sync.go:48 Setup cronjob {"version": "v0.3.0-rc1", "cron": "*/10 * * * *"}
2021-05-29T08:20:39.302Z INFO sync sync/sync.go:56 Run on startup {"version": "v0.3.0-rc1"}
2021-05-29T08:20:40.244Z INFO sync sync/sync.go:181 Start sync {"from": "192.168.2.190", "to": "192.168.2.191"}
2021-05-29T08:20:41.096Z INFO client client/client.go:416 Set dns config list {"host": "192.168.2.191"}
2021-05-29T08:20:41.345Z INFO client client/client.go:427 Set dhcp server config {"host": "192.168.2.191"}
2021-05-29T08:20:41.418Z INFO client client/client.go:433 Add static dhcp lease {"host": "192.168.2.191", "mac": "00:12:7d:42:aa:08", "ip": "192.168.2.208", "hostname": "test.server.local"}
2021-05-29T08:20:41.490Z INFO sync sync/sync.go:241 Sync done {"from": "192.168.2.190", "to": "192.168.2.191"}
2021-05-29T08:20:41.490Z INFO sync sync/http.go:65 Starting API server {"version": "v0.3.0-rc1", "port": 8080}
I will check some more items, as I did some manual syncing for DNS settings, but sofar I can see that:
- DHCP settings are copied
- DHCP static leases are copied
from adguardhome-sync.
I can't get REPLICA1 to sync. Is that a bug, or am I doing something wrong 😄
So:
- REPLICA_* works
- REPLICA1_* does not sync at all
from adguardhome-sync.
Actually, this should work.
I do my local tests also with REPLICA1
REPLICA1_URL=http://localhost:9091 REPLICA1_USERNAME=username REPLICA1_PASSWORD=1234567890 REPLICA1_AUTOSETUP=true BETA=dhcp,dns
Whats your docker config?
from adguardhome-sync.
Aaahhrggg. I checked Portainer, and saw a typo in the _URL part, it had a “:” added bedore the “=“ !
I removed the “:”, and now the second replica syncs too!
i overlooked that typo in the compose file a million times, but saw it immediately in Portainer 😄
from adguardhome-sync.
Hi @MarsWarrior
I implemented a first rc with the new features.
https://github.com/bakito/adguardhome-sync/releases/tag/v0.3.0-rc1The new features are currently not enabled by default.
you can enable them by adding the arg
--beta dns,dhcp
or with env variableBETA=dns,dhcp
I'm not done with writing all the unit tests, but wanted to give you the opportunity to test the features before I make the release.
Please let me know if the features cover your use-cases.
KR,
Marc
you can enable them by adding the arg
--beta dns,dhcpor with env variable
BETA=dns,dhcp``
Could you put this in a more prominent place on the Readme? It took me far too long to find the setting to enable DNS sync.
Thanks for this cool software!
from adguardhome-sync.
dns and dhcp are now added to default sync. beta removed.
https://github.com/bakito/adguardhome-sync/releases/tag/v0.3.0
from adguardhome-sync.
Related Issues (20)
- Sync fails when replica url has port HOT 2
- Certificate signed by unknown authority HOT 4
- Question: Main vs Synced HOT 2
- Sync Stats HOT 1
- Safe Search Provider selection not syncing HOT 2
- Fail to sync when DNS use a file HOT 1
- Error getting origin status HOT 1
- New Feature: Status Indicators HOT 4
- Sync "Pause service blocking schedule" HOT 2
- 400 Bad Request Unknown Language HOT 4
- Error getting origin blocked services schedule HOT 3
- adguardhome-sync.yaml: no such file or directory HOT 4
- 403 Forbidden HOT 8
- Adguard Sync Error 403 Forbidden HOT 10
- Different URL for instances on the UI HOT 6
- Proxy for AdGuard Status HOT 4
- Version Check HOT 1
- How to set Timezone? HOT 2
- v0.6.0 not honoring configuration file settings HOT 3
- 0.6.0: Error syncing DHCP server config HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adguardhome-sync.