Schwemmlandebene Posted March 8, 2016 Posted March 8, 2016 Hello, I've got a problem with DNS resolving and customize-image.sh. One setup works (home), one setup does not (office). Both setups are OS X (different major versions), Virtual Box (different major versions), Network Bridging and Ubuntu 14.04. Building images (Banana Pi M1/M2/R1 jessie next) without customize-image.sh works perfectly, espacially the apt-get stuff, which needs DNS resolving. The working home setup uses dynamic (DHCP) private RFC1918 IPs (and/or public IPv6 IPs). The nonworking office setup uses public static IPv4 IPs for OS X and Ubuntu. The build process works flawlessly until customize-image.sh is executed. Some excerpts of customize-image.sh and its output. fping 8.8.8.8 8.8.8.8 is alive fping 193.99.144.80 193.99.144.80 is alive fping heise.de # i.e. 193.99.144.80 heise.de address not found cat /etc/resolv.conf nameserver 8.8.8.8 eval '/bin/bash -c "apt-get update "' \ ${PROGRESS_LOG_TO_FILE:+' | tee -a $DEST/debug/debootstrap.log'} \ ${OUTPUT_DIALOG:+' | dialog --backtitle "$backtitle" --progressbox "Installing Armbian system..." 20 80'} \ ${OUTPUT_VERYSILENT:+' >/dev/null 2>/dev/null'} Err http://httpredir.debian.org jessie InRelease Err http://apt.armbian.com jessie InRelease Err http://httpredir.debian.org jessie-updates InRelease Err http://httpredir.debian.org jessie Release.gpg Could not resolve 'httpredir.debian.org' ... Any help would be appreciated. Regards, Steve
zador.blood.stained Posted March 8, 2016 Posted March 8, 2016 What OS release are you building (wheezy/jessie/trusty)? Can you try non-working setup without bridging network interfaces? Edit: Also try adding "nslookup heise.de" to customize-image.sh, this may report more descriptive error message. won't work, needs "dnsutils" package which is not installed by default
Schwemmlandebene Posted March 8, 2016 Author Posted March 8, 2016 It's jessie next. I could try NAT and RFC1918. But I have to try if copying the image from Ubuntu to the Pi with the SD card reader still works.
Schwemmlandebene Posted March 8, 2016 Author Posted March 8, 2016 NAT doesn't work, too. AFAIK the office router doesn't do masquerading.
zador.blood.stained Posted March 8, 2016 Posted March 8, 2016 Does it work from non-virtual environment? I mean maybe "office router" (or something upstream) does DNS queries filtering and allows using only internal DNS server, while quieries to others (like 8.8.8.8) are blocked? If OS X has nslookup command, you can try "nslookup heise.de" and "nslookup heise.de 8.8.8.8"
Schwemmlandebene Posted March 8, 2016 Author Posted March 8, 2016 nslookup heise.de 8.8.8.8 can't resolve. I put an echo "nameserver ip-of-office-dns-server" > /etc/resolv.conf at the beginning of customize-image.sh and everything is fine. Thank you for your help.
Ffdavid Chan Posted April 7, 2017 Posted April 7, 2017 http://askubuntu.com/questions/812714/run-resolvconf-resolv-conf-gets-erased-each-time-i-restart-and-i-cant-use-int
Recommended Posts