Each pod is given a nameserver IP that is a virtual IP representing the master. DNS for inside the cluster is served by that IP. You can edit the host's /etc/resolv.conf to add other nameservers. You cannot remove the internal DNS address without causing internal DNS to be unresolvable (addresses like NAME.NAMESPACE.svc.cluster.local)
On Tue, Jun 14, 2016 at 10:31 AM, Charles Moulliard <[email protected]> wrote: > What do you mean by "Origin 1.3.1 uses the internal service network to load > balance the DNS > server" ? How can we configure an external nameserver to allow a docker > container to fetch a resource from internet ? > > On Tue, Jun 14, 2016 at 3:48 PM, Clayton Coleman <[email protected]> > wrote: >> >> Origin 1.1.6 uses the master IP address to serve DNS, while Origin >> 1.3.1 uses the internal service network to load balance the DNS >> server. >> >> On Tue, Jun 14, 2016 at 8:01 AM, Charles Moulliard <[email protected]> >> wrote: >> > Hi, >> > >> > If I compare the nameservers which are defined/created within the >> > /etc/resolv.conf file of a Docker container between Openshift Origin >> > 1.1.6 & >> > 1.3.1, the servers are different >> > >> > Version : 1.1.6 >> > sh-4.2$ more /etc/resolv.conf >> > search default.svc.cluster.local svc.cluster.local cluster.local >> > localdomain >> > nameserver 172.28.128.4 >> > nameserver 10.0.2.3 >> > >> > Version : 1.3.1 >> > nameserver 172.30.0.1, >> > nameserver 10.0.2.3 >> > >> > Question: Is it possible to configure Openshift Origin to change the IP >> > Address of the DNS Server to use (example : 172.28.128.4 instead of >> > 172.30.0.1) ? >> > >> > FYI: The Openshift Origin server that I'm using has been created using >> > this >> > Vagrant File >> > >> > (https://github.com/fabric8io/fabric8-installer/blob/master/vagrant/openshift/Vagrantfile) >> > >> > Regards, >> > >> > Charles >> > >> > _______________________________________________ >> > users mailing list >> > [email protected] >> > http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> > > > _______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
