You can solve the problem by installing the dhclient
package. For the last time enable Google's DNS servers by runing for the last time:
sudo su "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"
Then run this cocktail of commands:
sudo apk update && sudo apk upgrade && sudo apk add dhclient
In order to get the fresh packages and install the dhclient
. Then configure the /etc/dhcp/dhclient.conf
and put the following:
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
And restart the networking:
sudo rc-service networking restart
Optionally you can confirm that works if you run:
sudo reboot
In either case you can confirm that dns is resolved by pinging the google.
ping google.com