Hi,
i cannot resolve hostnames on my rancheros machine. Ping works fine. Internet connection works fine (downloading images etc.)
[rancher@rancher ~]$ ping 192.168.100.10
PING 192.168.100.10 (192.168.100.10): 56 data bytes
64 bytes from 192.168.100.10: seq=0 ttl=128 time=0.895 ms
64 bytes from 192.168.100.10: seq=1 ttl=128 time=0.547 ms
64 bytes from 192.168.100.10: seq=2 ttl=128 time=0.483 ms
However
ping: bad address 'rancher.mydomain.com'
ping: bad address 'google.com'
At the start i thought it is a problem with the docker container inside the system-docker but after trying a network setup i figured out that the container is linked to the host network configuration and should be able to resolv a hostname over dns.
My vonfig looks like
#cloud-config
rancher:
environment:
EXTRA_CMDLINE: /init
network:
dns:
search:
- mydomain
interfaces:
eth0:
address: 192.168.100.99/24
dhcp: false
gateway: 192.168.100.1
mtu: 1500
nameservers:
- 192.168.100.10
- 192.168.100.11
services_include:
rancher-server: true
rancher-server-stable: false
state:
autoformat:
- /dev/sda
- /dev/sda1
dev: LABEL=RANCHER_STATE
wait: true
system_docker:
bridge: ""
I am using a VM in bridge mode setup. (DNS is working for any other VM on that server; The server is bare metal in my own Network)
NAME="RancherOS"
VERSION=v1.4.2
Can anybody help me with further input? Actually i am new to docker and rancheros so i probably just forgott a step in the configuration process.
Thank you Niklas