summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-rw-r--r--lib/network/connection/ethernet.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index 121aaf5..0c9f3c1 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -250,7 +250,7 @@ sub build_ifcfg_settings {
NEEDHOSTNAME => bool2yesno($self->{address}{needhostname}),
PEERYP => bool2yesno($self->{address}{peeryp}),
PEERDNS => bool2yesno($self->{address}{peerdns}),
- RESOLV_MODS => bool2yesno($self->{address}{dns1} || $self->{address}{dns2}),
+ RESOLV_MODS => bool2yesno(!$self->{address}{peerdns} && ($self->{address}{dns1} || $self->{address}{dns2})),
PEERNTPD => bool2yesno($self->{address}{peerntpd}),
DHCP_CLIENT => $self->{address}{dhcp_client},
DHCP_HOSTNAME => $self->{address}{dhcp_hostname},