* [sisyphus] dns и etcnet @ 2006-03-24 14:02 Eugene Prokopiev 2006-03-24 14:14 ` Шенцев Алексей Владимирович ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Eugene Prokopiev @ 2006-03-24 14:02 UTC (permalink / raw) To: Sisyphus Здравствуйте! Скажите, с etcnet нужно как-то по особенному настраивать соответствие адресов хостов и имен? У меня не пингуются не только dns-имена, но даже имена, прописанные в /etc/hosts: root@test ~ # cat /etc/sysconfig/network # When set to no, this may cause most daemons' initscripts skip starting. NETWORKING=yes # Used by hotplug/pcmcia/ifplugd scripts to detect current network config # subsystem. CONFMETHOD=etcnet # Used by rc.sysinit to setup system hostname at boot. #HOSTNAME= #DOMAINNAME= DOMAINNAME=mydomain.com HOSTNAME=test.mydomain.com root@test ~ # cat /etc/net/ifaces/eth0/ipv4address 192.168.46.100/24 root@test ~ # cat /etc/net/ifaces/eth0/ipv4route 192.168.0.0/16 via 192.168.46.1 root@test ~ # cat /etc/net/ifaces/eth0/options MODULE=3c59x root@test ~ # cat /etc/host.conf order hosts,bind multi on root@test ~ # cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 192.168.46.100 test.mydomain.com test root@test ~ # hostname test.mydomain.com root@test ~ # ping test.mydomain.com ping: unknown host test.mydomain.com root@test ~ # ping test ping: unknown host test root@test ~ # ping 192.168.46.100 PING 192.168.46.100 (192.168.46.100) 56(84) bytes of data. 64 bytes from 192.168.46.100: icmp_seq=1 ttl=64 time=0.031 ms 64 bytes from 192.168.46.100: icmp_seq=2 ttl=64 time=0.013 ms --- 192.168.46.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.013/0.022/0.031/0.009 ms -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-24 14:02 [sisyphus] dns и etcnet Eugene Prokopiev @ 2006-03-24 14:14 ` Шенцев Алексей Владимирович 2006-03-24 15:04 ` Eugene Prokopiev 2006-03-25 13:12 ` Alexey Borovskoy 2006-03-28 7:11 ` Eugene Prokopiev 2 siblings, 1 reply; 9+ messages in thread From: Шенцев Алексей Владимирович @ 2006-03-24 14:14 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list В сообщении от 24 марта 2006 17:02 Eugene Prokopiev написал(a): > Здравствуйте! Привет. > > Скажите, с etcnet нужно как-то по особенному настраивать соответствие > адресов хостов и имен? Насколько знаю нет. > У меня не пингуются не только dns-имена, но даже > имена, прописанные в /etc/hosts: А что говорит bind? Что видно в # cat /var/log/syslog/messages | grep bind && cat /var/log/syslog/messages | grep named ? -- С уважением, Шенцев Алексей Владимирович (AShen) E-mail: ashen@nsrz.ru ICQ: 271053845 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-24 14:14 ` Шенцев Алексей Владимирович @ 2006-03-24 15:04 ` Eugene Prokopiev 2006-03-25 9:47 ` Sergey 0 siblings, 1 reply; 9+ messages in thread From: Eugene Prokopiev @ 2006-03-24 15:04 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Шенцев Алексей Владимирович пишет: > В сообщении от 24 марта 2006 17:02 Eugene Prokopiev написал(a): > >>Здравствуйте! > > Привет. > >>Скажите, с etcnet нужно как-то по особенному настраивать соответствие >>адресов хостов и имен? > > Насколько знаю нет. > >>У меня не пингуются не только dns-имена, но даже >>имена, прописанные в /etc/hosts: > > А что говорит bind? Что видно в # cat /var/log/syslog/messages | grep bind && > cat /var/log/syslog/messages | grep named ? На этой машине нет сервера dns А кроме того, проблемы даже с /etc/hosts -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-24 15:04 ` Eugene Prokopiev @ 2006-03-25 9:47 ` Sergey 0 siblings, 0 replies; 9+ messages in thread From: Sergey @ 2006-03-25 9:47 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list On Friday 24 March 2006 19:04, Eugene Prokopiev wrote: > А кроме того, проблемы даже с /etc/hosts Этот файл никак не связан с etcnet... Приложение само вольно смотреть или не смотреть туда. На сколько я в курсе... -- С уважением, Сергей a_s_y@sama.ru ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-24 14:02 [sisyphus] dns и etcnet Eugene Prokopiev 2006-03-24 14:14 ` Шенцев Алексей Владимирович @ 2006-03-25 13:12 ` Alexey Borovskoy 2006-03-28 7:11 ` Eugene Prokopiev 2 siblings, 0 replies; 9+ messages in thread From: Alexey Borovskoy @ 2006-03-25 13:12 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eugene Prokopiev пишет: > Здравствуйте! > > Скажите, с etcnet нужно как-то по особенному настраивать соответствие > адресов хостов и имен? У меня не пингуются не только dns-имена, но даже > имена, прописанные в /etc/hosts: update_chrooted all - -- Алексей. GPG key fingerprint 949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEJUGo43qePxHzveERAmmkAJ4oUDE57ahxloiD2b290fLpHnKMiQCdFyxK hb62FeWDIF2WEAFqxdvvtcs= =BdDW -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-24 14:02 [sisyphus] dns и etcnet Eugene Prokopiev 2006-03-24 14:14 ` Шенцев Алексей Владимирович 2006-03-25 13:12 ` Alexey Borovskoy @ 2006-03-28 7:11 ` Eugene Prokopiev 2006-03-28 8:02 ` Eugene Prokopiev 2006-03-28 8:28 ` Yuriy Kashirin 2 siblings, 2 replies; 9+ messages in thread From: Eugene Prokopiev @ 2006-03-28 7:11 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list Выяснилось, что виноват сам ping, т.к. простейшая программка на С, использующая gethostbyname, адреса вполне себе разрешает. Полный вывод strace -f ping test в аттаче. Мне непонятен следующий фрагмент: chroot("/var/resolv") = 0 chdir("/") = 0 setgid32(101) = 0 setuid32(100) = 0 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) getpid() = 2824 getppid() = 2823 gettimeofday({1143540140, 102722}, NULL) = 0 getpid() = 2824 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718341389 open("/etc/resolv.conf", O_RDONLY) = -1 EACCES (Permission denied) Ну ладно, /dev/urandom в чруте действительно отсутствует, но /etc/resolv.conf на месте и с нормальными правами: # ls -lR /var/resolv /var/resolv: total 12 drwx------ 2 root root 4096 Mar 24 20:00 etc drwxr-xr-x 2 root root 4096 Mar 21 13:35 lib drwxr-xr-x 4 root root 4096 Mar 20 11:34 var /var/resolv/etc: total 44 -rw-r--r-- 1 root root 26 Jan 19 2004 host.conf -rw-r--r-- 1 root root 80 Mar 24 20:00 hosts -rw-r--r-- 1 root root 815 Mar 6 13:36 localtime -rw-r--r-- 1 root root 1854 Nov 10 2002 nsswitch.conf -rw-r--r-- 1 root root 24 Mar 24 19:43 resolv.conf -rw-r--r-- 1 root root 24450 Jul 2 2005 services /var/resolv/lib: total 300 -rwxr-xr-x 1 root root 72592 Mar 11 23:19 libnsl.so.1 -rw-r--r-- 1 root root 17760 Jan 10 03:16 libnss_dns.so.2 -rw-r--r-- 1 root root 34180 Jan 10 03:16 libnss_files.so.2 -rwxr-xr-x 1 root root 17772 Mar 11 23:19 libnss_hesiod.so.2 -rw-r--r-- 1 root root 34232 May 26 2005 libnss_nis.so.2 -rw-r--r-- 1 root root 42344 Jan 10 03:16 libnss_nisplus.so.2 -rwxr-xr-x 1 root root 63220 Mar 11 23:18 libresolv.so.2 /var/resolv/var: total 8 drwxr-xr-x 2 root root 4096 Sep 5 2005 nis drwxr-xr-x 3 root root 4096 Mar 20 11:34 yp /var/resolv/var/nis: total 0 /var/resolv/var/yp: total 4 drwxr-xr-x 2 root root 4096 Sep 5 2005 binding /var/resolv/var/yp/binding: total 0 В чем тогда дело? -- С уважением, Прокопьев Евгений ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-28 7:11 ` Eugene Prokopiev @ 2006-03-28 8:02 ` Eugene Prokopiev 2006-03-28 8:11 ` Alexey I. Froloff 2006-03-28 8:28 ` Yuriy Kashirin 1 sibling, 1 reply; 9+ messages in thread From: Eugene Prokopiev @ 2006-03-28 8:02 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list [-- Attachment #1: Type: text/plain, Size: 110 bytes --] > Полный вывод strace -f ping test в аттаче вот теперь в аттаче :) -- С уважением, Прокопьев Евгений [-- Attachment #2: ping-strace.log --] [-- Type: text/x-log, Size: 10578 bytes --] execve("/bin/ping", ["ping", "test"], [/* 27 vars */]) = 0 uname({sys="Linux", node="test.mydomain.com", ...}) = 0 brk(0) = 0x8063000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=10730, ...}) = 0 mmap2(NULL, 10730, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f35000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240U\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1140208, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f34000 mmap2(NULL, 1146964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e1b000 mmap2(0xb7f2d000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x112) = 0xb7f2d000 mmap2(0xb7f31000, 8276, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f31000 close(3) = 0 mprotect(0xb7f2d000, 4096, PROT_READ) = 0 munmap(0xb7f35000, 10730) = 0 fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 fstat64(1, {st_mode=S_IFREG|0644, st_size=1238, ...}) = 0 fstat64(2, {st_mode=S_IFREG|0644, st_size=1296, ...}) = 0 socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3 getuid32() = 0 setgroups32(0, []) = 0 brk(0) = 0x8063000 brk(0x8084000) = 0x8084000 socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(4) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(4) = 0 open("/etc/nsswitch.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1854, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f37000 read(4, "#\n# Please refer to nsswitch.con"..., 4096) = 1854 read(4, "", 4096) = 0 close(4) = 0 munmap(0xb7f37000, 4096) = 0 open("/etc/ld.so.cache", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=10730, ...}) = 0 mmap2(NULL, 10730, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f35000 close(4) = 0 open("/lib/libnss_files.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\32"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0644, st_size=34180, ...}) = 0 mmap2(NULL, 37508, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7e11000 mmap2(0xb7e19000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x7) = 0xb7e19000 close(4) = 0 munmap(0xb7f35000, 10730) = 0 open("/etc/passwd", O_RDONLY) = 4 fcntl64(4, F_GETFD) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 fstat64(4, {st_mode=S_IFREG|0644, st_size=1703, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f37000 read(4, "root:x:0:0:System Administrator:"..., 4096) = 1703 close(4) = 0 munmap(0xb7f37000, 4096) = 0 chroot("/var/resolv") = 0 chdir("/") = 0 setgid32(101) = 0 setuid32(100) = 0 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) getpid() = 2824 getppid() = 2823 gettimeofday({1143540140, 102722}, NULL) = 0 getpid() = 2824 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718341389 open("/etc/resolv.conf", O_RDONLY) = -1 EACCES (Permission denied) uname({sys="Linux", node="test.mydomain.com", ...}) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(4) = 0 socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory) close(4) = 0 open("/etc/host.conf", O_RDONLY) = -1 EACCES (Permission denied) open("/etc/hosts", O_RDONLY) = -1 EACCES (Permission denied) open("/etc/ld.so.cache", O_RDONLY) = -1 EACCES (Permission denied) open("/lib/tls/i686/sse2/libnss_nisplus.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/i686/sse2", 0xbff4a650) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/libnss_nisplus.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/i686", 0xbff4a650) = -1 ENOENT (No such file or directory) open("/lib/tls/sse2/libnss_nisplus.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/sse2", 0xbff4a650) = -1 ENOENT (No such file or directory) open("/lib/tls/libnss_nisplus.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls", 0xbff4a650) = -1 ENOENT (No such file or directory) open("/lib/i686/sse2/libnss_nisplus.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/i686/sse2", 0xbff4a650) = -1 ENOENT (No such file or directory) open("/lib/i686/libnss_nisplus.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/i686", 0xbff4a650) = -1 ENOENT (No such file or directory) open("/lib/sse2/libnss_nisplus.so.2", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/sse2", 0xbff4a650) = -1 ENOENT (No such file or directory) open("/lib/libnss_nisplus.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\31"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0644, st_size=42344, ...}) = 0 mmap2(NULL, 45564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7e05000 mmap2(0xb7e0f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x9) = 0xb7e0f000 close(4) = 0 open("/lib/libnsl.so.1", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3204\0"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0755, st_size=72592, ...}) = 0 mmap2(NULL, 83968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7df0000 mmap2(0xb7e01000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x10) = 0xb7e01000 mmap2(0xb7e03000, 6144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e03000 close(4) = 0 uname({sys="Linux", node="test.mydomain.com", ...}) = 0 open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory) open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libnss_nis.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\33"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0644, st_size=34232, ...}) = 0 mmap2(NULL, 37408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7de6000 mmap2(0xb7dee000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x7) = 0xb7dee000 close(4) = 0 uname({sys="Linux", node="test.mydomain.com", ...}) = 0 open("/lib/libnss_dns.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\r\0"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0644, st_size=17760, ...}) = 0 mmap2(NULL, 20612, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7de0000 mmap2(0xb7de4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3) = 0xb7de4000 close(4) = 0 open("/lib/libresolv.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320%\0"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0755, st_size=63220, ...}) = 0 mmap2(NULL, 76720, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7dcd000 mmap2(0xb7ddc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xe) = 0xb7ddc000 mmap2(0xb7dde000, 7088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7dde000 close(4) = 0 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) getpid() = 2824 getppid() = 2823 gettimeofday({1143540140, 106318}, NULL) = 0 getpid() = 2824 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718341389 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("0.0.0.0")}, 28) = 0 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 gettimeofday({1143540140, 106717}, NULL) = 0 poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 send(4, "\237\311\1\0\0\1\0\0\0\0\0\0\4test\10mydomain\3com\0\0"..., 35, 0) = 35 poll([{fd=4, events=POLLIN, revents=POLLERR}], 1, 5000) = 1 close(4) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("0.0.0.0")}, 28) = 0 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 gettimeofday({1143540140, 107085}, NULL) = 0 poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 send(4, "\237\311\1\0\0\1\0\0\0\0\0\0\4test\10mydomain\3com\0\0"..., 35, 0) = 35 poll([{fd=4, events=POLLIN, revents=POLLERR}], 1, 5000) = 1 close(4) = 0 write(2, "ping: unknown host test\n", 24ping: unknown host test ) = 24 exit_group(2) = ? Process 2824 detached ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-28 8:02 ` Eugene Prokopiev @ 2006-03-28 8:11 ` Alexey I. Froloff 0 siblings, 0 replies; 9+ messages in thread From: Alexey I. Froloff @ 2006-03-28 8:11 UTC (permalink / raw) To: ALT Linux Sisyphus [-- Attachment #1: Type: text/plain, Size: 657 bytes --] * Eugene Prokopiev <prokopiev@> [060328 12:03]: > > Полный вывод strace -f ping test в аттаче > вот теперь в аттаче :) > chroot("/var/resolv") = 0 > chdir("/") = 0 [..skip..] > open("/etc/host.conf", O_RDONLY) = -1 EACCES (Permission denied) > open("/etc/hosts", O_RDONLY) = -1 EACCES (Permission denied) > open("/etc/ld.so.cache", O_RDONLY) = -1 EACCES (Permission denied) Попрчен /var/resolv -- Regards, Alexey I. Froloff AIF5-RIPN, AIF5-RIPE ------------------------------------------- Inform-Mobil, Ltd. System Administrator http://www.inform-mobil.ru/ [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 191 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [sisyphus] dns и etcnet 2006-03-28 7:11 ` Eugene Prokopiev 2006-03-28 8:02 ` Eugene Prokopiev @ 2006-03-28 8:28 ` Yuriy Kashirin 1 sibling, 0 replies; 9+ messages in thread From: Yuriy Kashirin @ 2006-03-28 8:28 UTC (permalink / raw) To: ALT Linux Sisyphus discussion list On Tuesday 28 March 2006 10:11, Eugene Prokopiev wrote: > Полный вывод strace -f ping test в аттаче. Мне непонятен следующий > фрагмент: > > chroot("/var/resolv") = 0 > chdir("/") = 0 > setgid32(101) = 0 ^^^ > setuid32(100) = 0 ^^^ [skiped] > 1718341389 open("/etc/resolv.conf", O_RDONLY) = -1 EACCES > (Permission denied) > > Ну ладно, /dev/urandom в чруте действительно отсутствует, но > /etc/resolv.conf на месте и с нормальными правами: > > # ls -lR /var/resolv > /var/resolv: > total 12 > drwx------ 2 root root 4096 Mar 24 20:00 etc ^^^^^^^^^^^^^^^^^^^^^^ /etc с ненормальными правами для юзера 101 -- он не может в этот директорий войти, чтобы хоть какой-то файл открыть. > drwxr-xr-x 2 root root 4096 Mar 21 13:35 lib > drwxr-xr-x 4 root root 4096 Mar 20 11:34 var > > /var/resolv/etc: > total 44 > -rw-r--r-- 1 root root 26 Jan 19 2004 host.conf > -rw-r--r-- 1 root root 80 Mar 24 20:00 hosts > -rw-r--r-- 1 root root 815 Mar 6 13:36 localtime > -rw-r--r-- 1 root root 1854 Nov 10 2002 nsswitch.conf > -rw-r--r-- 1 root root 24 Mar 24 19:43 resolv.conf > -rw-r--r-- 1 root root 24450 Jul 2 2005 services -- Best regards Yuriy Kashirin ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-03-28 8:28 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-03-24 14:02 [sisyphus] dns и etcnet Eugene Prokopiev 2006-03-24 14:14 ` Шенцев Алексей Владимирович 2006-03-24 15:04 ` Eugene Prokopiev 2006-03-25 9:47 ` Sergey 2006-03-25 13:12 ` Alexey Borovskoy 2006-03-28 7:11 ` Eugene Prokopiev 2006-03-28 8:02 ` Eugene Prokopiev 2006-03-28 8:11 ` Alexey I. Froloff 2006-03-28 8:28 ` Yuriy Kashirin
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git