[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[atomic-devel] Setting a DNS entry



My meta-data I use this:

instance-id: Atomic02
local-hostname: atomic-host-002
network-interfaces: |
  iface eth0 inet static
  address 198.52.161.43
  netmask 255.255.255.0
  gateway 198.52.161.1    

Is there a way to set dns as well? Seems that adding "dns 8.8.8.8" to
the end does not work.

I'm forced to use in cloud-config

#cloud-config
bootcmd:
 - echo 8.8.8.8  > /etc/resolv.conf

Unfortunatley after a reboot resolv.conf is removed due to network
manager autogenerating the resolv.conf file.

Is there any way to specify it in the network-interfaces of the
meta-data?
-- 

Charlie Drage
Red Hat - OSAS Team / Project Atomic
4096R / 0x9B3B446C
http://pgp.mit.edu/pks/lookup?op=get&search=0x622CDF119B3B446C


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]