Skip to content

Commit

Permalink
Updating the windows running docs (#313)
Browse files Browse the repository at this point in the history
* updating the windows running docs

* updating the windows running docs

* missing remove when garbage collected

* is not necesary to log when -1 is returned at the first byte read

* release notes
  • Loading branch information
mageddo authored Feb 25, 2023
1 parent 5a80572 commit 50267aa
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 3.2.1-beta
* Respecting OS to configure as default DNS

* Other minor fixes

### 3.2.0-beta
* Better error treating and log formatting
Expand Down
23 changes: 17 additions & 6 deletions docs/content/1-getting-started/running-it/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,19 @@ docker run --name dns-proxy-server -p 5380:5380 -p 53:53/udp \
2. Change your default internet adapter DNS to `127.0.0.1`

* Press `Windows + R` and type `ncpa.cpl` then press **enter** or go to your network interfaces Window
* Change your default internet adapterDNS to `127.0.0.1` by following the below
pictures (sorry they are in portuguese)
* Change your default internet adapter DNS to `127.0.0.1` by following the
pictures below

![Screenshot](https://i.imgur.com/1goUHp0.png?width=10pc&classes=shadow)
![Screenshot](https://i.imgur.com/XKM7JwN.png?width=10pc&classes=shadow)
![Screenshot](https://i.imgur.com/EFno6F6.png?width=10pc&classes=shadow)
![Screenshot](https://i.imgur.com/UAVUgLf.png?width=10pc&classes=shadow)

Uncheck IPV6 because Windows can try to solve hostnames by using a IPV6 DNS server,
then requests won't be sent to DPS, actually DPS doesn't support IPV6.

![Screenshot](https://i.imgur.com/DGPdFRD.png?width=10pc&classes=shadow)

![screenshot](https://i.imgur.com/EcZF6mG.png?width=10pc&classes=shadow)

![Screenshot](https://i.imgur.com/0bxASqd.png?width=10pc&classes=shadow)

### Testing the DNS server

Expand Down Expand Up @@ -94,4 +101,8 @@ Address: 172.217.29.206

Start the server at [custom port](#configure-your-dns) and solving from it

nslookup -port=8980 google.com 127.0.0.1
```bash
$ nslookup -port=8980 google.com 127.0.0.1
```

[1]: https://imgur.com/a/LlDH8AM
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=3.2.0-beta
version=3.2.1-beta
quarkusPluginId=io.quarkus
quarkusPluginVersion=2.16.0.Final
quarkusPlatformGroupId=io.quarkus.platform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ static short readHeaderAndValidate(InputStream in) {
for (int i = 0; i < msgSizeBuf.limit(); i++) {
final byte read = (byte) in.read();
if (read == -1) {
log.info("status=incompleteHeader, bytes={}", i + 1);
if(i >= 1){
log.info("status=incompleteHeader, bytes={}", i + 1);
}
return -1;
}
msgSizeBuf.put(i, read);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ void watchDog() {
final var client = itr.next().get();
if (client == null) {
log.debug("status=clientWasGarbageCollected");
itr.remove();
continue;
}
MDC.put("clientId", String.valueOf(client.getId()));
Expand Down

0 comments on commit 50267aa

Please sign in to comment.