Empty and not readable /etc/resolv.conf file

Asmo Koskinen asmo.koskinen at arkki.info
Mon Apr 6 15:42:33 BST 2009


Oliver Grawert kirjoitti:

> DNS_SERVER *and* SEARCH_DOAMIN need to be set both, else resolv.conf
> wont be touched by the bootscript ... (as the shipped documentation in
> 7usr/share/doc/ltsp-server says in lts-parameters.gz)

1. I have lts.conf

admin-ltsp5 at ubuntu-ltsp5:~$ cat /var/lib/tftpboot/ltsp/i386/lts.conf
[default]
SEARCH_DOMAIN=ubuntu-ltsp5
DNS_SERVER=192.168.1.1
admin-ltsp5 at ubuntu-ltsp5:~$

2. I can ping and use names in chroot.

admin-ltsp5 at ubuntu-ltsp5:~$ ssh root at 192.168.0.200
root at 192.168.0.200's password:
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=23.3 ms
64 bytes from 193.166.3.2: icmp_seq=2 ttl=241 time=23.2 ms
^C
--- 193.166.3.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 23.221/23.275/23.329/0.054 ms

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.3 ms
^C
--- ftp.funet.fi ping statistics ---
2 packets transmitted, 1 received, 50% packet loss, time 1001ms
rtt min/avg/max/mdev = 23.319/23.319/23.319/0.000 ms

root at ltsp200:~# ls -al /etc/resolv.conf
---------- 1 root root 43 2002-01-08 23:22 /etc/resolv.conf

root at ltsp200:~# cat /etc/resolv.conf
search ubuntu-ltsp5
nameserver 192.168.1.1
root at ltsp200:~#


3. But. I can't use names in thin client's Konqueror. Ip numbers works.

4. if I touch /etc/resolv.conf, Konqueror works with names.

root at ltsp200:~# chmod 755 /etc/resolv.conf

root at ltsp200:~# ls -al /etc/resolv.conf
-rwxr-xr-x 1 root root 43 2002-01-08 23:22 /etc/resolv.conf
root at ltsp200:~#

----

So to me problem is that /etc/resolv.conf in chroot still is wrong - it 
has now right lines inside it, but users can't read it in thin client side.

I do have now three different kind /etc/resolv.conf files. Only c works.

a. Empty and unreadable

---------- 1 root root 0 2002-01-08 22:57 /etc/resolv.conf

b. Full and unreadable

---------- 1 root root 43 2002-01-08 23:22 /etc/resolv.conf

c. Full and readable

-rwxr-xr-x 1 root root 43 2002-01-08 23:22 /etc/resolv.conf


Best Regards Asmo Koskinen.



More information about the edubuntu-users mailing list