Bug 549447 - unscd does not share resolver options across sub-processes, causing DNS hangs when single-request is needed
Summary: unscd does not share resolver options across sub-processes, causing DNS hangs...
Status: RESOLVED WONTFIX
: 547658 618050 (view as bug list)
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: RC 1
Hardware: x86-64 openSUSE 11.2
: P2 - High : Critical with 5 votes (vote)
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 04:12 UTC by Teruel de Campo MD
Modified: 2013-07-09 10:35 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
coolo: SHIP_STOPPER-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Teruel de Campo MD 2009-10-23 04:12:21 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-3.1 Firefox/3.5.3

1. able to ping

2. firefox does not work

3. no repositories available.

4. resolve.conf is blank

5. if in firefox <about:config> and set network.dns.disableIPv6 to true then firefox work. Then I set it back to false as default.

6. Now yast/network devices/network setting/Hostname-DNS and I add the DNS from the router then all is back to normal. 

7. resolve.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the

8. Remove the DNS from the Hostname-DNS field and firefox does not work and the resolve.conf files is blanc again.

There is a similar problem under Bug 546213 but I think there are difference.
 
I reported what looks like the same problem under opensuse 11.1 The solution there was perfect. Here are bug reported under 11.1 which I believe is the same.
Bug 463015 - Able to ping unable to connect
Bug 441947 - getaddrinfo() breaks when resolv.conf points at buggy nameservers

Reproducible: Always

Steps to Reproduce:
1.able to ping. firefox unable to connect
2.if I change to true <network.dns.disableIPv6> in firefox, it works. 
3.If I add DNS servers to the network device everything work



Under opensuse 11.1 the problem was resolved replacing glibc.
Comment 1 Teruel de Campo MD 2009-10-28 14:32:54 UTC
The initial report was based on 
openSUSE-DVD-Build0334-x86_64.iso
It is also in the 
openSUSE-KDE4-LiveCD-Build0336-x86_64.iso
both when I run it from the CD or using the usb_stick. 

Besides using in my system I also create a vmware image and the same problem occur (which was expected becasue the basic system and router are the same)
Comment 2 Marius Tomaschewski 2009-10-28 17:35:23 UTC
Sorry, but I can't follow ... could you provide additional infos about
the configuration that you're using in each step?

(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3)
> Gecko/20090909 SUSE/3.5.3-3.1 Firefox/3.5.3
> 
> 1. able to ping

By IP or by name? What is in your resolv.conf? When it is empty, is there
a local nameserver running?

> 2. firefox does not work
[...]
> Steps to Reproduce:
> 1.able to ping. firefox unable to connect
> 2.if I change to true <network.dns.disableIPv6> in firefox, it works. 
> 3.If I add DNS servers to the network device everything work
> 
> 
> 
> Under opensuse 11.1 the problem was resolved replacing glibc.

Petr, do you have an idea what happens here?
Comment 3 Marius Tomaschewski 2009-10-28 17:36:17 UTC
For me it sounds like the problem in bug 441947, comment 25. Is it back?
Comment 4 Teruel de Campo MD 2009-10-28 18:36:53 UTC
Marius thxs for your reply

I will use a the liveCD version.

1. Click on Firefox
> server not found

2. Yast/software manager
>cannot access installation media .....check wheather the server is accessible

3. open a terminal
$ ping -c1 google.com
$ ping -c1 74.125.67.100

both work OK. 

4. /etc/resolv.conf
nameserver 192.168.0.1

This is the address of the router. 

5. Open firefox  and access the router
http:/192.168.0.1
and get the qwest DNS from there 
205.171.3.25
205.171.2.25

6. Open yast/network devices/network setting
Select Traditional Method with ifup
Select Hostnamee/DNS and add
Name server 1 -> 205.171.3.25
Name server 2 -> 205.171.2.25

No I can use firefox OK. 

7. I replace those qwest DNS servers I got from the router with 2 public DNS servers

208.67.222.222
208.67.220.220

Also firefox works well. 


So it seems the system can not get the DNS from the router.
Comment 5 Marius Tomaschewski 2009-10-29 10:32:19 UTC
(In reply to comment #4)

OK. This means there is nothing wrong with the setup netconfig does.
I guess this is some variant of the problem described in bug 441947,
comment 25 and you have one of the routers that gets confused.

I reassign it to Petr, who knows what the glibc resolver is currently
doing.


Petr,
similar strange things happen also when I install "bind" and set NETCONFIG_DNS_FORWARDER="bind" in /etc/sysconfig/network/config
to use a local bind forwarder, so there is no nameserver in
/etc/resolv.conf.

balios:~ # host www.novell.com
www.novell.com has address 130.57.5.25
balios:~ # ping www.novell.com        
ping: unknown host www.novell.com
Comment 6 Teruel de Campo MD 2009-10-30 01:30:05 UTC
I have just repeated all the steps done above but using RC2

openSUSE-DVD-Build0339-x86_64.iso
openSUSE-KDE4-LiveCD-Build0339-x86_64.iso

the same results.
Comment 7 Teruel de Campo MD 2009-10-31 17:07:52 UTC
>...you have one of the routers that gets confused

Yes Marius, I know and the easy way would be to get a different one but this is a popular dsl modem/router (http://www.qwest.com/internethelp/modems/motorola-3347/index.html) that is the one that Qwest gives you so I though is important to have it fix.
Comment 8 Stephan Kulow 2009-10-31 20:53:11 UTC
it's said but true that popular dsl modems are the worst, but it's not _that_ popular that we will delay 11.2 because of this problem. And this glibc is shared with all new linux distributions coming out now, so if linux is popular among quest customers, a new firmware will appear before christmas.
Comment 9 Petr Baudis 2009-10-31 20:59:06 UTC
Teruel, can you check if unscd is running on your system? Please paste output of `ps axu | grep nscd`.

If nscd is running, second, can you please check if `wget http://www.google.com/` works? If not, can you prefix the command with `strace ` and attach the output to this bug?

Thank you!

Marius, can you please open a separate bug? In the meantime, are you running nscd?
Comment 10 Teruel de Campo MD 2009-11-01 04:01:06 UTC
Hi Petr thxs for coming to the rescue again ;-). The work all of you have done with 11.2 is fantastic BIG THANKS! 

(1) 
tdec@linux-lrmo:~> ps axu | grep nscd
root      4615  0.0  0.0 174572  1248 ?        Ssl  16:04   0:00 /usr/sbin/nscd
tdec      6656  0.0  0.0   5288   828 pts/1    S+   21:56   0:00 grep nscd


(2)
tdec@linux-lrmo:~> wget http://www.google.com/
--2009-10-31 21:55:55--  http://www.google.com/
Resolving www.google.com... 74.125.65.99, 74.125.65.147, 74.125.65.104, ...
Connecting to www.google.com|74.125.65.99|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.1'

    [ <=>                                   ] 5,417       --.-K/s   in 0.07s

2009-10-31 21:55:55 (80.4 KB/s) - `index.html.1' saved [5417]

Ciao
Comment 11 Teruel de Campo MD 2009-11-01 04:38:15 UTC
Petr the previous message was wrong and I could not delete it. It was done under 11.1 :-(

Here is the real one under RC2 Live CD 64b

1. I change to ifup and I add the 2 DNS servers into the network settings

1.1
linux@linux:~> ps axu | grep nscd
nobody    3233  0.0  0.0   3840   448 ?        Rs   04:06   0:00 /usr/sbin/nscd
linux     6325  0.0  0.0   7396   848 pts/0    S+   04:11   0:00 grep nscd

1.2
linux@linux:~> wget http://www.google.com/
--2009-11-01 04:12:07--  http://www.google.com/
Resolving www.google.com... 74.125.65.106, 74.125.65.104, 74.125.65.105, ...
Connecting to www.google.com|74.125.65.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

    [ <=>                                   ] 5,417       --.-K/s   in 0.06s

2009-11-01 04:12:07 (88.4 KB/s) - `index.html' saved [5417]

1.3 /etc/resolv.conf
nameserver 205.171.3.25
nameserver 205.171.2.25
nameserver 192.168.0.1


2. Here I restore the knetwork manager after delete the 2 DNS

2.1

linux@linux:~> ps axu | grep nscd
nobody    3233  0.0  0.0   3840   452 ?        Rs   04:06   0:00 /usr/sbin/nscd
linux     7826  0.0  0.0   7396   848 pts/0    S+   04:15   0:00 grep nscd

2.2

linux@linux:~> wget http://www.google.com/
--2009-11-01 04:16:14--  http://www.google.com/
Resolving www.google.com... failed: Name or service not known.
wget: unable to resolve host address `www.google.com'

2.3

linux@linux:~> strace wget http://www.google.com/                               
execve("/usr/bin/wget", ["wget", "http://www.google.com/"], [/* 78 vars */]) = 0
brk(0)                                  = 0x645000                              
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7bb9000                                                                       
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7bb8000                                                                       
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory) 
open("/etc/ld.so.cache", O_RDONLY)      = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=74407, ...}) = 0                        
mmap(NULL, 74407, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7ba5000                
close(3)                                = 0                                     
open("/lib64/librt.so.1", O_RDONLY)     = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\"\0\0\0\0\0\0"..., 832) = 832                                                                       
fstat(3, {st_mode=S_IFREG|0755, st_size=36016, ...}) = 0                        
mmap(NULL, 2132976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6ca7794000                                                                      
fadvise64(3, 0, 2132976, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f6ca779c000, 2093056, PROT_NONE) = 0                                
mmap(0x7f6ca799b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f6ca799b000                                               
close(3)                                = 0                                     
open("/usr/lib64/libssl.so.0.9.8", O_RDONLY) = 3                                
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220=\1\0\0\0\0\0"..., 832) = 832                                                                        
fstat(3, {st_mode=S_IFREG|0555, st_size=326256, ...}) = 0                       
mmap(NULL, 2421456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6ca7544000                                                                      
fadvise64(3, 0, 2421456, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f6ca758d000, 2093056, PROT_NONE) = 0                                
mmap(0x7f6ca778c000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x48000) = 0x7f6ca778c000                                             
close(3)                                = 0                                     
open("/usr/lib64/libcrypto.so.0.9.8", O_RDONLY) = 3                             
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\245\6\0\0\0\0\0"..., 832) = 832                                                                     
fstat(3, {st_mode=S_IFREG|0555, st_size=1605840, ...}) = 0                      
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7ba4000                                                                       
mmap(NULL, 3715896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6ca71b8000                                                                      
fadvise64(3, 0, 3715896, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f6ca731b000, 2093056, PROT_NONE) = 0                                
mmap(0x7f6ca751a000, 155648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x162000) = 0x7f6ca751a000                                           
mmap(0x7f6ca7540000, 13112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7540000                                                  
close(3)                                = 0                                     
open("/lib64/libc.so.6", O_RDONLY)      = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\353\1\0\0\0\0\0"..., 832) = 832                                                                     
fstat(3, {st_mode=S_IFREG|0755, st_size=1408560, ...}) = 0                      
mmap(NULL, 3516488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6ca6e5d000                                                                      
fadvise64(3, 0, 3516488, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f6ca6fae000, 2097152, PROT_NONE) = 0                                
mmap(0x7f6ca71ae000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x151000) = 0x7f6ca71ae000                                            
mmap(0x7f6ca71b3000, 18504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6ca71b3000                                                  
close(3)                                = 0                                     
open("/lib64/libpthread.so.0", O_RDONLY) = 3                                    
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360X\0\0\0\0\0\0"..., 832) = 832                                                                        
fstat(3, {st_mode=S_IFREG|0755, st_size=131260, ...}) = 0                       
mmap(NULL, 2208640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6ca6c41000                                                                      
fadvise64(3, 0, 2208640, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f6ca6c57000, 2097152, PROT_NONE) = 0                                
mmap(0x7f6ca6e57000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f6ca6e57000                                              
mmap(0x7f6ca6e59000, 13184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6ca6e59000                                                  
close(3)                                = 0                                     
open("/lib64/libdl.so.2", O_RDONLY)     = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\r\0\0\0\0\0\0"..., 832) = 832                                                                       
fstat(3, {st_mode=S_IFREG|0755, st_size=14872, ...}) = 0                        
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7ba3000                                                                       
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6ca6a3d000                                                                      
fadvise64(3, 0, 2109696, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f6ca6a3f000, 2097152, PROT_NONE) = 0                                
mmap(0x7f6ca6c3f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f6ca6c3f000                                               
close(3)                                = 0                                     
open("/lib64/libz.so.1", O_RDONLY)      = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\36\0\0\0\0\0\0"..., 832) = 832                                                                       
fstat(3, {st_mode=S_IFREG|0755, st_size=88640, ...}) = 0                        
mmap(NULL, 2183664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6ca6827000                                                                      
fadvise64(3, 0, 2183664, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f6ca683b000, 2097152, PROT_NONE) = 0                                
mmap(0x7f6ca6a3b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f6ca6a3b000                                              
close(3)                                = 0                                     
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7ba2000                                                                       
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7ba1000                                                                       
arch_prctl(ARCH_SET_FS, 0x7f6ca7ba16f0) = 0                                     
mprotect(0x7f6ca6a3b000, 4096, PROT_READ) = 0                                   
mprotect(0x7f6ca6c3f000, 4096, PROT_READ) = 0                                   
mprotect(0x7f6ca6e57000, 4096, PROT_READ) = 0                                   
mprotect(0x7f6ca71ae000, 16384, PROT_READ) = 0                                  
mprotect(0x7f6ca751a000, 57344, PROT_READ) = 0                                  
mprotect(0x7f6ca778c000, 8192, PROT_READ) = 0                                   
mprotect(0x7f6ca799b000, 4096, PROT_READ) = 0                                   
mprotect(0x636000, 4096, PROT_READ)     = 0                                     
mprotect(0x7f6ca7bba000, 4096, PROT_READ) = 0                                   
munmap(0x7f6ca7ba5000, 74407)           = 0                                     
set_tid_address(0x7f6ca7ba17c0)         = 7955                                  
set_robust_list(0x7f6ca7ba17d0, 0x18)   = 0                                     
futex(0x7fffe0eac5bc, FUTEX_WAKE_PRIVATE, 1) = 0                                
futex(0x7fffe0eac5bc, 0x189 /* FUTEX_??? */, 1, NULL, 7f6ca7ba16f0) = -1 EAGAIN (Resource temporarily unavailable)                                              
rt_sigaction(SIGRTMIN, {0x7f6ca6c46780, [], SA_RESTORER|SA_SIGINFO, 0x7f6ca6c4fc00}, NULL, 8) = 0                                                               
rt_sigaction(SIGRT_1, {0x7f6ca6c46810, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f6ca6c4fc00}, NULL, 8) = 0                                                     
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0                          
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0       
brk(0)                                  = 0x645000                              
brk(0x666000)                           = 0x666000                              
open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                        
open("/usr/share/locale/locale.alias", O_RDONLY) = 3                            
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0                         
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7bb7000                                                                       
read(3, "# Locale name alias data base.\n#"..., 4096) = 2512                    
read(3, "", 4096)                       = 0                                     
close(3)                                = 0                                     
munmap(0x7f6ca7bb7000, 4096)            = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)                                                         
open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = 3              
fstat(3, {st_mode=S_IFREG|0644, st_size=373, ...}) = 0                          
mmap(NULL, 373, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7bb7000                  
close(3)                                = 0                                     
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3                      
fstat(3, {st_mode=S_IFREG|0644, st_size=26050, ...}) = 0                        
mmap(NULL, 26050, PROT_READ, MAP_SHARED, 3, 0) = 0x7f6ca7bb0000                 
close(3)                                = 0                                     
futex(0x7f6ca71b2f60, FUTEX_WAKE_PRIVATE, 2147483647) = 0                       
open("/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)                                                            
open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) = 3                 
fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0                           
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7baf000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)                                                              
open("/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY) = 3                   
fstat(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0                           
mmap(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7bae000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                
open("/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY) = 3                     
fstat(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0                          
mmap(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7bad000                  
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                   
open("/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY) = 3                        
fstat(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0                           
mmap(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7bac000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                  
open("/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY) = 3                       
fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0                           
mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7bab000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)                                                               
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3                    
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0                         
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3    
fstat(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0                           
mmap(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7baa000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)                                                               
open("/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY) = 3                    
fstat(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0                          
mmap(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7ba9000                  
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                
open("/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY) = 3                     
fstat(3, {st_mode=S_IFREG|0644, st_size=966938, ...}) = 0                       
mmap(NULL, 966938, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7ab4000               
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                   
open("/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY) = 3                        
fstat(3, {st_mode=S_IFREG|0644, st_size=2454, ...}) = 0                         
mmap(NULL, 2454, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7ba8000                 
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                
open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY) = 3                     
fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0                           
mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7ba7000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                  
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3                       
fstat(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0                       
mmap(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6ca7a75000               
close(3)                                = 0                                     
stat("/etc/wgetrc", {st_mode=S_IFREG|0644, st_size=4306, ...}) = 0              
open("/etc/wgetrc", O_RDONLY)           = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=4306, ...}) = 0                         
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7a74000                                                                       
read(3, "###\n### Sample Wget initializati"..., 4096) = 4096                    
read(3, "to on:\n#backup_converted = off\n\n"..., 4096) = 210                   
read(3, "", 4096)                       = 0                                     
close(3)                                = 0                                     
munmap(0x7f6ca7a74000, 4096)            = 0                                     
stat("/home/linux/.wgetrc", 0x7fffe0eac3c0) = -1 ENOENT (No such file or directory)                                                                             
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGHUP, {0x1, [HUP], SA_RESTORER|SA_RESTART, 0x7f6ca6e8f560}, {SIG_DFL, [], 0}, 8) = 0                                                             
rt_sigaction(SIGHUP, {0x41c8b0, [HUP], SA_RESTORER|SA_RESTART, 0x7f6ca6e8f560}, {0x1, [HUP], SA_RESTORER|SA_RESTART, 0x7f6ca6e8f560}, 8) = 0                    
rt_sigaction(SIGUSR1, {0x41c8b0, [USR1], SA_RESTORER|SA_RESTART, 0x7f6ca6e8f560}, {SIG_DFL, [], 0}, 8) = 0                                                      
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x7f6ca6e8f560}, {SIG_DFL, [], 0}, 8) = 0                                                           
rt_sigaction(SIGWINCH, {0x41d190, [WINCH], SA_RESTORER|SA_RESTART, 0x7f6ca6e8f560}, {SIG_DFL, [], 0}, 8) = 0                                                    
stat("index.html", {st_mode=S_IFREG|0644, st_size=5417, ...}) = 0               
stat("index.html.1", 0x7fffe0eabf40)    = -1 ENOENT (No such file or directory) 
stat("index.html.1", 0x7fffe0eac030)    = -1 ENOENT (No such file or directory) 
gettimeofday({1257049187, 252541}, NULL) = 0                                    
open("/etc/localtime", O_RDONLY)        = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0                          
fstat(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0                          
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6ca7a74000                                                                       
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 118                                                                           
lseek(3, -62, SEEK_CUR)                 = 56                                    
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 62                                                                            
close(3)                                = 0                                     
munmap(0x7f6ca7a74000, 4096)            = 0                                     
write(2, "--2009-11-01 04:19:47--  http://"..., 48--2009-11-01 04:19:47--  http://www.google.com/                                                               
) = 48                                                                          
stat("/home/linux/.netrc", 0x7fffe0eabd30) = -1 ENOENT (No such file or directory)                                                                              
open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                            
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                     
open("/usr/share/locale-bundle/en_US.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                              
open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                             
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                      
open("/usr/share/locale-bundle/en_US.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                               
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                  
open("/usr/share/locale/en_US/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                           
open("/usr/share/locale-bundle/en_US/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                    
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                               
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                        
open("/usr/share/locale-bundle/en.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                 
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                
open("/usr/share/locale/en.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                         
open("/usr/share/locale-bundle/en.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                  
open("/usr/share/locale-langpack/en/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                     
open("/usr/share/locale/en/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                              
open("/usr/share/locale-bundle/en/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                       
write(2, "Resolving www.google.com... ", 28Resolving www.google.com... ) = 28   
socket(PF_NETLINK, SOCK_RAW, 0)         = 3                                     
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0                 
getsockname(3, {sa_family=AF_NETLINK, pid=7955, groups=00000000}, [12]) = 0     
gettimeofday({1257049187, 254019}, NULL) = 0                                    
sendto(3, "\24\0\0\0\26\0\1\3c\f\355J\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20                                         
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"8\0\0\0\24\0\2\0c\f\355J\23\37\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 172                         
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0c\f\355J\23\37\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128                          
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0c\f\355J\23\37\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20                                
close(3)                                = 0                                     
socket(PF_FILE, 0x80801 /* SOCK_??? */, 0) = 3                                  
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0           
sendto(3, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18    
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])                                                                   
recvmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\321x\36\247\0\0", 6}, {"\340\314\350\246l\177\0\0", 8}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 0                                                                      
close(3)                                = 0                                     
socket(PF_FILE, 0x80801 /* SOCK_??? */, 0) = 3                                  
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0           
sendto(3, "\2\0\0\0\16\0\0\0\17\0\0\0www.google.com\0", 27, MSG_NOSIGNAL, NULL, 0) = 27                                                                         
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])                                                                           
read(3, "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24            
close(3)                                = 0                                     
open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                            
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                     
open("/usr/share/locale-bundle/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                              
open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                             
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                      
open("/usr/share/locale-bundle/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "failed: Name or service not know"..., 35failed: Name or service not known.
) = 35
write(2, "wget: unable to resolve host add"..., 54wget: unable to resolve host address `www.google.com'
) = 54
gettimeofday({1257049187, 356010}, NULL) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
close(2)                                = 0
exit_group(1)                           = ?

2.4

/etc/resolv.conf
nameserver 192.168.0.1


3. Here I keep ifup and I delete the two DNS

3.1

linux@linux:~> ps axu | grep nscd
nobody    3233  0.0  0.0   3840   452 ?        Rs   04:06   0:00 /usr/sbin/nscd
linux    12446  0.0  0.0   7396   848 pts/0    R+   04:28   0:00 grep nscd  

3.2   
linux@linux:~> wget http://www.google.com/
--2009-11-01 04:28:28--  http://www.google.com/
Resolving www.google.com... failed: Name or service not known.
wget: unable to resolve host address `www.google.com'    

3.3     
linux@linux:~> strace wget http://www.google.com/
execve("/usr/bin/wget", ["wget", "http://www.google.com/"], [/* 78 vars */]) = 0
brk(0)                                  = 0x645000                              
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad05e8000                                                                       
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad05e7000                                                                       
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory) 
open("/etc/ld.so.cache", O_RDONLY)      = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=74407, ...}) = 0                        
mmap(NULL, 74407, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05d4000                
close(3)                                = 0                                     
open("/lib64/librt.so.1", O_RDONLY)     = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\"\0\0\0\0\0\0"..., 832) = 832                                                                       
fstat(3, {st_mode=S_IFREG|0755, st_size=36016, ...}) = 0                        
mmap(NULL, 2132976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0ad01c3000                                                                      
fadvise64(3, 0, 2132976, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f0ad01cb000, 2093056, PROT_NONE) = 0                                
mmap(0x7f0ad03ca000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f0ad03ca000                                               
close(3)                                = 0                                     
open("/usr/lib64/libssl.so.0.9.8", O_RDONLY) = 3                                
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220=\1\0\0\0\0\0"..., 832) = 832                                                                        
fstat(3, {st_mode=S_IFREG|0555, st_size=326256, ...}) = 0                       
mmap(NULL, 2421456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0acff73000                                                                      
fadvise64(3, 0, 2421456, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f0acffbc000, 2093056, PROT_NONE) = 0                                
mmap(0x7f0ad01bb000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x48000) = 0x7f0ad01bb000                                             
close(3)                                = 0                                     
open("/usr/lib64/libcrypto.so.0.9.8", O_RDONLY) = 3                             
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\245\6\0\0\0\0\0"..., 832) = 832                                                                     
fstat(3, {st_mode=S_IFREG|0555, st_size=1605840, ...}) = 0                      
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad05d3000                                                                       
mmap(NULL, 3715896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0acfbe7000                                                                      
fadvise64(3, 0, 3715896, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f0acfd4a000, 2093056, PROT_NONE) = 0                                
mmap(0x7f0acff49000, 155648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x162000) = 0x7f0acff49000                                           
mmap(0x7f0acff6f000, 13112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0acff6f000                                                  
close(3)                                = 0                                     
open("/lib64/libc.so.6", O_RDONLY)      = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\353\1\0\0\0\0\0"..., 832) = 832                                                                     
fstat(3, {st_mode=S_IFREG|0755, st_size=1408560, ...}) = 0                      
mmap(NULL, 3516488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0acf88c000                                                                      
fadvise64(3, 0, 3516488, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f0acf9dd000, 2097152, PROT_NONE) = 0                                
mmap(0x7f0acfbdd000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x151000) = 0x7f0acfbdd000                                            
mmap(0x7f0acfbe2000, 18504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0acfbe2000                                                  
close(3)                                = 0                                     
open("/lib64/libpthread.so.0", O_RDONLY) = 3                                    
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360X\0\0\0\0\0\0"..., 832) = 832                                                                        
fstat(3, {st_mode=S_IFREG|0755, st_size=131260, ...}) = 0                       
mmap(NULL, 2208640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0acf670000                                                                      
fadvise64(3, 0, 2208640, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f0acf686000, 2097152, PROT_NONE) = 0                                
mmap(0x7f0acf886000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f0acf886000                                              
mmap(0x7f0acf888000, 13184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0acf888000                                                  
close(3)                                = 0                                     
open("/lib64/libdl.so.2", O_RDONLY)     = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\r\0\0\0\0\0\0"..., 832) = 832                                                                       
fstat(3, {st_mode=S_IFREG|0755, st_size=14872, ...}) = 0                        
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad05d2000                                                                       
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0acf46c000                                                                      
fadvise64(3, 0, 2109696, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f0acf46e000, 2097152, PROT_NONE) = 0                                
mmap(0x7f0acf66e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0acf66e000                                               
close(3)                                = 0                                     
open("/lib64/libz.so.1", O_RDONLY)      = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\36\0\0\0\0\0\0"..., 832) = 832                                                                       
fstat(3, {st_mode=S_IFREG|0755, st_size=88640, ...}) = 0                        
mmap(NULL, 2183664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0acf256000                                                                      
fadvise64(3, 0, 2183664, POSIX_FADV_WILLNEED) = 0                               
mprotect(0x7f0acf26a000, 2097152, PROT_NONE) = 0                                
mmap(0x7f0acf46a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f0acf46a000                                              
close(3)                                = 0                                     
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad05d1000                                                                       
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad05d0000                                                                       
arch_prctl(ARCH_SET_FS, 0x7f0ad05d06f0) = 0                                     
mprotect(0x7f0acf46a000, 4096, PROT_READ) = 0                                   
mprotect(0x7f0acf66e000, 4096, PROT_READ) = 0                                   
mprotect(0x7f0acf886000, 4096, PROT_READ) = 0                                   
mprotect(0x7f0acfbdd000, 16384, PROT_READ) = 0                                  
mprotect(0x7f0acff49000, 57344, PROT_READ) = 0                                  
mprotect(0x7f0ad01bb000, 8192, PROT_READ) = 0                                   
mprotect(0x7f0ad03ca000, 4096, PROT_READ) = 0                                   
mprotect(0x636000, 4096, PROT_READ)     = 0                                     
mprotect(0x7f0ad05e9000, 4096, PROT_READ) = 0                                   
munmap(0x7f0ad05d4000, 74407)           = 0                                     
set_tid_address(0x7f0ad05d07c0)         = 12458                                 
set_robust_list(0x7f0ad05d07d0, 0x18)   = 0                                     
futex(0x7fff502e765c, FUTEX_WAKE_PRIVATE, 1) = 0                                
futex(0x7fff502e765c, 0x189 /* FUTEX_??? */, 1, NULL, 7f0ad05d06f0) = -1 EAGAIN (Resource temporarily unavailable)                                              
rt_sigaction(SIGRTMIN, {0x7f0acf675780, [], SA_RESTORER|SA_SIGINFO, 0x7f0acf67ec00}, NULL, 8) = 0                                                               
rt_sigaction(SIGRT_1, {0x7f0acf675810, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f0acf67ec00}, NULL, 8) = 0                                                     
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0                          
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0       
brk(0)                                  = 0x645000                              
brk(0x666000)                           = 0x666000                              
open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                        
open("/usr/share/locale/locale.alias", O_RDONLY) = 3                            
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0                         
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad05e6000                                                                       
read(3, "# Locale name alias data base.\n#"..., 4096) = 2512                    
read(3, "", 4096)                       = 0                                     
close(3)                                = 0                                     
munmap(0x7f0ad05e6000, 4096)            = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)                                                         
open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = 3              
fstat(3, {st_mode=S_IFREG|0644, st_size=373, ...}) = 0                          
mmap(NULL, 373, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05e6000                  
close(3)                                = 0                                     
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3                      
fstat(3, {st_mode=S_IFREG|0644, st_size=26050, ...}) = 0                        
mmap(NULL, 26050, PROT_READ, MAP_SHARED, 3, 0) = 0x7f0ad05df000                 
close(3)                                = 0                                     
futex(0x7f0acfbe1f60, FUTEX_WAKE_PRIVATE, 2147483647) = 0                       
open("/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)                                                            
open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) = 3                 
fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0                           
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05de000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)                                                              
open("/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY) = 3                   
fstat(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0                           
mmap(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05dd000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                
open("/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY) = 3                     
fstat(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0                          
mmap(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05dc000                  
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                   
open("/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY) = 3                        
fstat(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0                           
mmap(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05db000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                  
open("/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY) = 3                       
fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0                           
mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05da000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)                                                               
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3                    
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0                         
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3    
fstat(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0                           
mmap(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05d9000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)                                                               
open("/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY) = 3                    
fstat(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0                          
mmap(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05d8000                  
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                
open("/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY) = 3                     
fstat(3, {st_mode=S_IFREG|0644, st_size=966938, ...}) = 0                       
mmap(NULL, 966938, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad04e3000               
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                   
open("/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY) = 3                        
fstat(3, {st_mode=S_IFREG|0644, st_size=2454, ...}) = 0                         
mmap(NULL, 2454, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05d7000                 
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                
open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY) = 3                     
fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0                           
mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad05d6000                   
close(3)                                = 0                                     
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)                                                                  
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3                       
fstat(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0                       
mmap(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ad04a4000               
close(3)                                = 0                                     
stat("/etc/wgetrc", {st_mode=S_IFREG|0644, st_size=4306, ...}) = 0              
open("/etc/wgetrc", O_RDONLY)           = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=4306, ...}) = 0                         
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad04a3000                                                                       
read(3, "###\n### Sample Wget initializati"..., 4096) = 4096                    
read(3, "to on:\n#backup_converted = off\n\n"..., 4096) = 210                   
read(3, "", 4096)                       = 0                                     
close(3)                                = 0                                     
munmap(0x7f0ad04a3000, 4096)            = 0                                     
stat("/home/linux/.wgetrc", 0x7fff502e7460) = -1 ENOENT (No such file or directory)                                                                             
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGHUP, {0x1, [HUP], SA_RESTORER|SA_RESTART, 0x7f0acf8be560}, {SIG_DFL, [], 0}, 8) = 0                                                             
rt_sigaction(SIGHUP, {0x41c8b0, [HUP], SA_RESTORER|SA_RESTART, 0x7f0acf8be560}, {0x1, [HUP], SA_RESTORER|SA_RESTART, 0x7f0acf8be560}, 8) = 0                    
rt_sigaction(SIGUSR1, {0x41c8b0, [USR1], SA_RESTORER|SA_RESTART, 0x7f0acf8be560}, {SIG_DFL, [], 0}, 8) = 0                                                      
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x7f0acf8be560}, {SIG_DFL, [], 0}, 8) = 0                                                           
rt_sigaction(SIGWINCH, {0x41d190, [WINCH], SA_RESTORER|SA_RESTART, 0x7f0acf8be560}, {SIG_DFL, [], 0}, 8) = 0                                                    
stat("index.html", {st_mode=S_IFREG|0644, st_size=5417, ...}) = 0               
stat("index.html.1", 0x7fff502e6fe0)    = -1 ENOENT (No such file or directory) 
stat("index.html.1", 0x7fff502e70d0)    = -1 ENOENT (No such file or directory) 
gettimeofday({1257049713, 677754}, NULL) = 0                                    
open("/etc/localtime", O_RDONLY)        = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0                          
fstat(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0                          
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ad04a3000                                                                       
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 118                                                                           
lseek(3, -62, SEEK_CUR)                 = 56                                    
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 62                                                                            
close(3)                                = 0                                     
munmap(0x7f0ad04a3000, 4096)            = 0                                     
write(2, "--2009-11-01 04:28:33--  http://"..., 48--2009-11-01 04:28:33--  http://www.google.com/                                                               
) = 48                                                                          
stat("/home/linux/.netrc", 0x7fff502e6dd0) = -1 ENOENT (No such file or directory)                                                                              
open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                            
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                     
open("/usr/share/locale-bundle/en_US.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                              
open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                             
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                      
open("/usr/share/locale-bundle/en_US.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                               
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                  
open("/usr/share/locale/en_US/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                           
open("/usr/share/locale-bundle/en_US/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                    
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                               
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                        
open("/usr/share/locale-bundle/en.UTF-8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                 
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                
open("/usr/share/locale/en.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                         
open("/usr/share/locale-bundle/en.utf8/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                  
open("/usr/share/locale-langpack/en/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                     
open("/usr/share/locale/en/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                              
open("/usr/share/locale-bundle/en/LC_MESSAGES/wget.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                       
write(2, "Resolving www.google.com... ", 28Resolving www.google.com... ) = 28   
socket(PF_NETLINK, SOCK_RAW, 0)         = 3                                     
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0                 
getsockname(3, {sa_family=AF_NETLINK, pid=12458, groups=00000000}, [12]) = 0    
gettimeofday({1257049713, 679554}, NULL) = 0                                    
sendto(3, "\24\0\0\0\26\0\1\3q\16\355J\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20                                        
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"8\0\0\0\24\0\2\0q\16\355J\2520\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 172                         
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0q\16\355J\2520\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128                          
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0q\16\355J\2520\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20                                
close(3)                                = 0                                     
socket(PF_FILE, 0x80801 /* SOCK_??? */, 0) = 3                                  
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0           
sendto(3, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18    
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])                                                                   
recvmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\321h\301\317\0\0", 6}, {"\340\274\213\317\n\177\0\0", 8}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 0                                                                    
close(3)                                = 0                                     
socket(PF_FILE, 0x80801 /* SOCK_??? */, 0) = 3                                  
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0           
sendto(3, "\2\0\0\0\16\0\0\0\17\0\0\0www.google.com\0", 27, MSG_NOSIGNAL, NULL, 0) = 27                                                                         
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])                                                                           
read(3, "\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 24) = 24            
close(3)                                = 0                                     
open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                            
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                     
open("/usr/share/locale-bundle/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                              
open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                             
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)                                                      
open("/usr/share/locale-bundle/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "failed: Name or service not know"..., 35failed: Name or service not known.
) = 35
write(2, "wget: unable to resolve host add"..., 54wget: unable to resolve host address `www.google.com'
) = 54
gettimeofday({1257049713, 780570}, NULL) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
close(2)                                = 0
exit_group(1)                           = ?

3.4

/etc/resolv.conf
nameserver 192.168.0.1

Ciao
Comment 12 Petr Baudis 2009-11-02 19:20:20 UTC
Oh. So what's going on I think is that unscd actually doesn't cope with this case well, since it does each resolution in a sub-process and thus the fact that the DNS server is broken is never shared between the sub-processes - bad that I didn't actually realize that earlier. :-(

There are two basic ways to fix this, one is to randomly resolve a certain hostname within the main program (probably in a parallel thread, which would mean adding some threading after all), or copying acquired resolver settings along the reply from the sub-process (which would probably be heavily glibc-specific, but I'm not sure yet). Hopefully either way will not be too big change...
Comment 13 Petr Baudis 2009-11-02 19:20:59 UTC
*** Bug 547658 has been marked as a duplicate of this bug. ***
Comment 14 Teruel de Campo MD 2009-11-02 23:47:58 UTC
Good Petr!

Sorry I did not place the strace as attachment, I was so tired that day and I wanted to reply asap. 

If you need any info let me know it.
Comment 15 Teruel de Campo MD 2010-01-03 17:26:33 UTC
Another workaround!
This is how to be able to use the knetworkmanger 

1. R click on the knetworkmanager on the system tray 
2. Manage Connection/Wireless/Edit/IP Adress
3. Configure dropdown menu and select <Automatic (DHCP) adress only>
4. Add the DNS servers
5. OK

For the wired connection I have to create a new connection and make it active and of course do similar changes as the one for the wireless.

-=terry=-
Comment 16 Petr Baudis 2011-02-04 01:10:45 UTC
*** Bug 618050 has been marked as a duplicate of this bug. ***
Comment 20 Andreas Schwab 2013-07-09 10:35:44 UTC
unscd has been dropped.