Skip to content

Commit

Permalink
dhclient-script: ipv6 uses different variables for nameservers
Browse files Browse the repository at this point in the history
new_domain_name_servers and new_domain_search is only provided vit IPv4

see: https://src.fedoraproject.org/rpms/dhcp/blob/HEAD/f/dhclient-script#_148
  • Loading branch information
lnykryn authored and haraldh committed Feb 11, 2020
1 parent 579fbb9 commit 9623104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules.d/35network-legacy/dhclient-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ setup_interface() {

setup_interface6() {
domain=$new_domain_name
search=$(printf -- "$new_domain_search")
namesrv=$new_domain_name_servers
search=$(printf -- "$new_dhcp6_domain_search")
namesrv=$new_dhcp6_name_servers
hostname=$new_host_name
[ -n "$new_dhcp_lease_time" ] && lease_time=$new_dhcp_lease_time
[ -n "$new_max_life" ] && lease_time=$new_max_life
Expand Down

0 comments on commit 9623104

Please sign in to comment.