nlf / dhyve-os

a tiny OS for running docker in xhyve
194 stars 19 forks source link

DNS resolution uses external system #11

Closed robholland closed 8 years ago

robholland commented 8 years ago

Because dhyve uses 8.8.8.8 for DNS the VM is unable to resolve DNS entries that the host can via VPN. Please offer a way to use the host for DNS resolution.

nlf commented 8 years ago

yeah using 8.8.8.8 was actually to mitigate an issue where occasionally dns didn't work in the vm, but i knew it wasn't the ideal solution. i'll try to figure out something more appropriate

robholland commented 8 years ago

Removing the 8.8.8.8 option from /etc/resolv.conf and leaving just the eth0 line on the VM worked fine for me, I can resolve things via the VPN.

calebwoods commented 8 years ago

Not sure if this is completely related, but I seem to be running into a DNS issue when trying to install Debian packages. If I ssh to the box I ping the sources successfully. Output below.

$ docker-compose build --no-cache
Building web
Step 1 : FROM ruby:2.3.0-slim
 ---> 4ca49381c500
Step 2 : MAINTAINER Caleb Woods <caleb.woods@rolemodelsoftware.com>
 ---> Running in 9d423ead945a
 ---> b3b8a0af20cc
Removing intermediate container 9d423ead945a
Step 3 : RUN apt-get update && apt-get install -qq -y build-essential nodejs libpq-dev postgresql-client-9.4 libsqlite3-dev --fix-missing --no-install-recommends
 ---> Running in 1b100841d1d2
Ign http://security.debian.org jessie/updates InRelease
Ign http://security.debian.org jessie/updates Release.gpg
Ign http://security.debian.org jessie/updates Release
Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://security.debian.org jessie/updates/main amd64 Packages

Err http://security.debian.org jessie/updates/main amd64 Packages
  404  Not Found [IP: 128.31.0.63 80]
Ign http://httpredir.debian.org jessie InRelease
Ign http://httpredir.debian.org jessie-updates InRelease
Ign http://httpredir.debian.org jessie Release.gpg
Ign http://httpredir.debian.org jessie-updates Release.gpg
Ign http://httpredir.debian.org jessie Release
Ign http://httpredir.debian.org jessie-updates Release
W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-amd64/Packages  404  Not Found [IP: 128.31.0.63 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/binary-amd64/Packages  404  Not Found [IP: 128.31.0.66 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found [IP: 128.31.0.66 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
Err http://httpredir.debian.org jessie/main amd64 Packages
  404  Not Found [IP: 128.31.0.66 80]
Err http://httpredir.debian.org jessie-updates/main amd64 Packages
  404  Not Found [IP: 128.31.0.66 80]
ERROR: Service 'web' failed to build: The command '/bin/sh -c apt-get update && apt-get install -qq -y build-essential nodejs libpq-dev postgresql-client-9.4 libsqlite3-dev --fix-missing --no-install-recommends' returned a non-zero code: 100
nlf commented 8 years ago

closing in favor of #21