Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
## 5.0.5
## 5.1.0
* Changed resolv.conf handling format to make it compatible with alpine linux see [#627][5_1_0_1][1].
* Refactoring Linux amd64 static build to work on Github Actions
* Creating the docs for config v3
* Fixing Hostname Entry Update API
* Fixing intermittent unit test

[5_1_0_1]: https://github.com/mageddo/dns-proxy-server/issues/627

## 5.0.0
* Refactoring config module to support config v3
* Activating Config v3 for beta testing
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=5.0.5-snapshot
version=5.1.0-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void configure(IpAddr addr) {
final var serversBefore = this.findNetworkDnsServers(network);
this.serversBefore.put(network, serversBefore);
final var success = this.updateDnsServers(network,
Collections.singletonList(addr.getRawIP())
Collections.singletonList(addr.getIpAsText())
);
log.debug("status=configuring, network={}, serversBefore={}, success={}", network,
this.serversBefore, success
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void configure(IpAddr addr) {

if (confFile.isResolvconf()) {
final var overrideNameServers = this.isOverrideNameServersActive();
ResolvconfConfigurator.process(confFile.getPath(), addr, overrideNameServers);
ResolvconfConfiguratorV2.process(confFile.getPath(), addr, overrideNameServers);
} else if (confFile.isResolved()) {
this.configureResolved(addr, confFile);
} else {
Expand All @@ -82,7 +82,7 @@ public void restore() {

final var confFile = this.getConfFile();
if (confFile.isResolvconf()) {
ResolvconfConfigurator.restore(confFile.getPath());
ResolvconfConfiguratorV2.restore(confFile.getPath());
} else if (confFile.isResolved()) {
ResolvedConfigurator.restore(confFile.getPath());
tryRestartResolved();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.mageddo.dnsproxyserver.dnsconfigurator.linux.ResolvFile.Type;

public class LinuxResolverConfDetector {

public static Type detect(Path path) {

if (isSystemdResolved(path)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import com.mageddo.dnsproxyserver.utils.Dns;
import com.mageddo.net.IpAddr;

/**
* @deprecated deprecated because of #627, use {@link ResolvconfConfiguratorV2}
*/
@Deprecated
public class ResolvconfConfigurator {

public static void process(Path confFile, IpAddr addr) {
Expand Down
Loading