https://github.com/svenvc/neodns
Experimental in-image DNS implementation for Pharo
https://github.com/svenvc/neodns
dns networking pharo
Last synced: 18 days ago
JSON representation
Experimental in-image DNS implementation for Pharo
- Host: GitHub
- URL: https://github.com/svenvc/neodns
- Owner: svenvc
- Created: 2019-03-28T10:03:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T13:02:20.000Z (over 3 years ago)
- Last Synced: 2025-01-09T06:46:53.440Z (over 1 year ago)
- Topics: dns, networking, pharo
- Language: Smalltalk
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NeoDNS
Experimental in-image DNS implementation for Pharo.
[](https://github.com/svenvc/NeoDNS/actions/workflows/CI.yml)
There are two DNS clients, **NeoSimplifiedDNSClient** and **NeoDNSClient** using the same interface but different implementations, see their class comments for more information.
Additionally, there is **NeoNetworkState** that uses a simple DNS operation to maintain whether we have an operational network.
## Usage
```Smalltalk
NeoSimplifiedDNSClient default addressForName: 'stfx.eu'.
NeoSimplifiedDNSClient new useMulticastDNS; addressForName: 'zappy.local'.
NeoDNSClient default addressForName: 'stfx.eu'.
NeoDNSClient default nameForAddress: #[46 137 113 215] asSocketAddress.
NeoNetworkState default hasInternetConnection.
NeoNetworkState default ensureInternetConnection.
NeoNetworkState default airplaneMode.
NeoNetworkState default airplaneMode: true.
NeoNetworkState default airplaneMode: false.
```
## References
https://en.wikipedia.org/wiki/DomainNameSystem
## Message code copied from
http://www.smalltalkhub.com/#!/~BenComan/DNS/
MIT License