Empty and not readable /etc/resolv.conf file

Asmo Koskinen asmo.koskinen at arkki.info
Mon Apr 6 10:50:01 UTC 2009


Hi,

this is updated Jaunty Beta. I can use localapps with ip numbers, but 
not with dns names.

root at ltsp200:~# ping 193.166.3.2
PING 193.166.3.2 (193.166.3.2) 56(84) bytes of data.
64 bytes from 193.166.3.2: icmp_seq=1 ttl=241 time=24.0 ms
64 bytes from 193.166.3.2: icmp_seq=2 ttl=241 time=23.8 ms
^C
--- 193.166.3.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 23.837/23.928/24.020/0.179 ms

root at ltsp200:~# ping ftp.funet.fi
ping: unknown host ftp.funet.fi
root at ltsp200:~#
----

That because /etc/resolv.conf file in chroot is empty and not readable (!?).

admin-ltsp5 at ubuntu-ltsp5:~$ ssh root at 192.168.0.200
root at 192.168.0.200's password:
Last login: Tue Jan  8 19:18:13 2002 from server
root at ltsp200:~# ls -al /etc/resolv.conf
---------- 1 root root 0 2002-01-08 19:17 /etc/resolv.conf
root at ltsp200:~#
----

Server side is good.

admin-ltsp5 at ubuntu-ltsp5:~$ cat /etc/resolv.conf
search ubuntu-ltsp5
nameserver 192.168.1.1
admin-ltsp5 at ubuntu-ltsp5:~$ cat /opt/ltsp/i386/etc/resolv.conf
search ubuntu-ltsp5
nameserver 192.168.1.1
admin-ltsp5 at ubuntu-ltsp5:~$
----

When I modify that file, dns works also in chroot. And of course in thin 
client (VLC or Konqueror over Internet), too.

But I loose that file every time I boot thin client!

admin-ltsp5 at ubuntu-ltsp5:~$ ssh root at 192.168.0.200
root at 192.168.0.200's password:
Last login: Tue Jan  8 19:18:13 2002 from server
root at ltsp200:~# ls -al /etc/resolv.conf
root at ltsp200:~# chmod 755 /etc/resolv.conf
root at ltsp200:~# vi /etc/resolv.conf
root at ltsp200:~# cat /etc/resolv.conf
nameserver 192.168.1.1

root at ltsp200:~# ping ftp.funet.fi
PING ftp.funet.fi (193.166.3.2) 56(84) bytes of data.
64 bytes from ftp.funet.fi (193.166.3.2): icmp_seq=1 ttl=241 time=23.9 ms
^C
--- ftp.funet.fi ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 23.977/23.977/23.977/0.000 ms
root at ltsp200:~#
----

Bug? Solution?

Best Regards Asmo Koskinen.




More information about the edubuntu-devel mailing list