Skip to content

Conversation

@darkdragon-001
Copy link
Contributor

Adjust the default values of the DDNS client example to connect to the one from the server example.

# Terminal 1
$ python3 examples/ddns_server.py
INFO:root:127.0.0.1: delete_rrset host.example. ANY A
INFO:root:127.0.0.1: add_to_rrset host.example. 300 IN A 10.0.0.5

# Terminal 2
$ python3 examples/ddns_client.py 10.0.0.5

@darkdragon-001 darkdragon-001 force-pushed the ddns-example branch 6 times, most recently from 4926133 to 37c69e4 Compare December 30, 2025 21:16
@rthalley
Copy link
Owner

I don't understand the benefit of adding a server which doesn't do anything but print part of the DDNS message.

@darkdragon-001
Copy link
Contributor Author

darkdragon-001 commented Dec 30, 2025

@rthalley This is an example. It took me quite some time to figure this out. Having an example would have been very helpful. Main motivation would be some sort of translator like https://github.com/pagekite/duppy, receiving RFC2136 requests and sending requests to proprietary DNS provider HTTP interfaces. They currently mix dnspython with async-python and monkey patching them together in https://github.com/pagekite/duppy/blob/main/duppy/dns_updates.py.

@rthalley
Copy link
Owner

rthalley commented Jan 1, 2026

I'm willing to merge something like this PR that simply provides an example asyncio-based mini-serve but does not change the library. It's a nice complement to nanonameserver for those who prefer asyncio.

I do not think that a general server framework is appropriate for the API at this time, but I'm not adverse to further discussion of it in discussion section.

@darkdragon-001
Copy link
Contributor Author

I'm willing to merge something like this PR that simply provides an example asyncio-based mini-serve but does not change the library. It's a nice complement to nanonameserver for those who prefer asyncio.

Having such an example would have already saved me a lot of time. So if we can get this merged, it would be great.

I do not think that a general server framework is appropriate for the API at this time, but I'm not adverse to further discussion of it in discussion section.

Let's keep this PR with the example separate from the topic about a general server framework (discussion in #1247).

@darkdragon-001 darkdragon-001 force-pushed the ddns-example branch 2 times, most recently from 5eb86ce to 3f0fc41 Compare January 2, 2026 11:27
Adjust the default values of the DDNS client example to connect to the one from the server example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants