Page 1 of 1

DNS entry not available

Posted: 21 May 2014, 12:42
by grafa
Hello,

I don't know if it's a bug, but I have set the DNS entrys in the wizard. After starting the kiosk, it didn't work.
Via ssh I saw, the /etc/resolv.conf was blank.

Now I have in the rootcopy/etc directory "dhcpcd.conf" created with: nohook resolv.conf

Then it works. Whats the reason?

Thanks!

Re: DNS entry not available

Posted: 21 May 2014, 13:05
by fanthom
checked and is ok here. please login through ssh and have a look on /etc/rc.d/rc(3,4).d/S-inet. my one is correct:

Code: Select all

killall dhcpcd 2>/dev/null
sleep 1
ifconfig eth0 192.168.1.2 netmask 255.255.255.0
route add default gw 192.168.1.1 eth0
echo "nameserver 192.168.1.1" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
btw: when you choose manual configuration (enter DNS, ip, gateway, etc) then dhcpcd is disabled (killed) as per script above.