Hi,
I would like to know how to configure DNS server (resolver) on network interfaces and not only localhost.
When I configure DNS server cloud-init only configure this DNS server on loopback interface.
# cat /etc/network/interfaces.d/50-cloud-init.cfg
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
dns-nameservers 8.8.8.8
What am I doing wrong ?
I would like to know how to configure DNS server (resolver) on network interfaces and not only localhost.
When I configure DNS server cloud-init only configure this DNS server on loopback interface.
# cat /etc/network/interfaces.d/50-cloud-init.cfg
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
dns-nameservers 8.8.8.8
What am I doing wrong ?
Attachments
Last edited: