Giter VIP home page Giter VIP logo

Comments (12)

bakito avatar bakito commented on August 19, 2024

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.

MarsWarrior avatar MarsWarrior commented on August 19, 2024

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.

bakito avatar bakito commented on August 19, 2024

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.

AmoebeLabs avatar AmoebeLabs commented on August 19, 2024

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.

MarsWarrior avatar MarsWarrior commented on August 19, 2024

Oops, forgot to sign in as me on this computer 😊

image

from adguardhome-sync.

bakito avatar bakito commented on August 19, 2024

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.

MarsWarrior avatar MarsWarrior commented on August 19, 2024

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.

MarsWarrior avatar MarsWarrior commented on August 19, 2024

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.

bakito avatar bakito commented on August 19, 2024

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.

MarsWarrior avatar MarsWarrior commented on August 19, 2024

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.

gravyflex avatar gravyflex commented on August 19, 2024

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
you can enable them by adding the arg--beta dns,dhcpor with env variableBETA=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.

bakito avatar bakito commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.