Hello, guys,
I am new to this forum, although work with Linux for many years, already, on and off (standard package: Apache, Mysql, Perl, PHP, etc).
Few months ago, I switched from
Ubuntu to
Fedora 16 (I was dimayed with their new completely uncustomizable desktop environment - only to find the same thing happenning on Fedora

- I can fume and steam infinitely about this) and worked with the new system more or less satisfactorily until few days ago when I powered down my box for vacation and found it completely uncommunicable after turning it back on: no external access (FTP and HTTP), no internal HTTP working, no access to the internet, except for fedoraproject.com (

).
One thing I discovered was new to me - SELinux suddenly revealed itself with its mandatory restrictions. I turned it off with disgust but this did not help. When I learned that this is a
NSA child, I figured out that it is here forever and I have to surrender an once. I turned it with permissive mode, added few suggested permissions and the internal HTTP access start working (almost).
Another resolution came with turning off the firewall (temporarily, until I figure out what is wrong and how to make it work. So far, I coud not find any advises out there that would work for me). This allowed the external FTP and HTTP access.
Now, what is left - internet access. Here, I stuck! Neither
firefox, nor
wget can resolve the host name for anything except
fedoraproject.com. Other commands,
ping,
host,
yum seems to be working ok.
I ran
strace with
wget and
ping which showed both reading the same files (
nsswitch.conf,
host.conf,
resolve.conf,
ld.so.cache,
hosts) and talking to the same DHCP server (192.168.0.1 port 53, CenturyLink=Qwest DSL modem). The manners of talking are different, however. In case of
ping, there is one sendto and one recvfrom (as it should be). In
wget, however, there are two sendto commands followed by two recvfrom commands. The entire dialog is attempted twice with small differences in the phrases.
Could you please advise me where to go next? I doubt going back to Ubuntu will make me happy. You cannot outrun the NSA...
Thanks,
Andrey
The lines in red - those that I added trying to fix the problem with no success.
cat /etc/host.conf
order hosts,bind
multi on
nospoof on
cat /etc/hosts
127.0.0.1 localhost.localdomain localhost localhost4 localhost4.localdomain4
::1 localhost6.localdomain6 localhost6
cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.0.1
cat /etc/nsswitch.conf
passwd: files
shadow: files
group: files
initgroups: files
hosts: files dns myhostname
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: nisplus
publickey: nisplus
automount: files nisplus
aliaces: files nisplus
strace -o o ping -c 1 www.redhat.com --> 72.247.15.214
(only the part of the output containing the name resolution dialog is shown)
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])
sendto(4, "E5\1\0\0\1\0\0\0\0\0\0\3www\6redhat\3com\0\0\1\0\ 1", 32, MSG_NOSIGNAL, NULL, 0) = 32
poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [191]) = 0
recvfrom(4, "\f\377\201\200\0\1\0\4\0\0\0\0\3www\6redhat\3com\ 0\0\1\0\1\300\f\0\5\0\1\0\0\0001\0!\10wildcard\6re dhat\3com\7edgekey\3net\0\300,\0\5\0\1\0\0-\354\0005\10wildcard\6redhat\3com\7edgekey\3net\vg lobalredir\6akadns\300H\300Y\0\5\0\1\0\0\0|\0\25\5 e1890\1b\nakamaiedge\300H\300\232\0\1\0\1\0\0\0\t\ 0\4H\367\17\326", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, [16]) = 191
close(4) = 0
strace -o o1 -s 2000 wget http://www.redhat.com/
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\340E\1\0\0\1\0\0\0\0\0\0\3www\6redhat\3com\0\0\1 \0\1", 32, MSG_NOSIGNAL, NULL, 0) = 32
poll([{fd=3, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\26\356\1\0\0\1\0\0\0\0\0\0\3www\6redhat\3com\0\0 \34\0\1", 32, MSG_NOSIGNAL, NULL, 0) = 32
poll([{fd=3, events=POLLIN}], 1, 4999) = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [191]) = 0
recvfrom(3, "\340E\201\200\0\1\0\4\0\0\0\0\3www\6redhat\3com\0 \0\1\0\1\300\f\0\5\0\1\0\0\0<\0!\10wildcard\6redha t\3com\7edgekey\3net\0\300,\0\5\0\1\0\0KC\0005\10w ildcard\6redhat\3com\7edgekey\3net\vglobalredir\6a kadns\300H\300Y\0\5\0\1\0\0\1\36\0\25\5e1890\1b\na kamaiedge\300H\300\232\0\1\0\1\0\0\0\24\0\4H\367\1 7\326", 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, [16]) = 191
poll([{fd=3, events=POLLIN}], 1, 4927) = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [32]) = 0
recvfrom(3, "\26\356\200\0\0\1\0\0\0\0\0\0\3www\6redhat\3com\0 \0\34\0\1", 1857, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, [16]) = 32
close(3) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "/\233\1\0\0\1\0\0\0\0\0\0\3www\6redhat\3com\0\0\1\0 \1", 32, MSG_NOSIGNAL, NULL, 0) = 32
poll([{fd=3, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\264k\1\0\0\1\0\0\0\0\0\0\3www\6redhat\3com\0\0\3 4\0\1", 32, MSG_NOSIGNAL, NULL, 0) = 32
poll([{fd=3, events=POLLIN}], 1, 4999) = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [191]) = 0
recvfrom(3, "/\233\201\200\0\1\0\4\0\0\0\0\3www\6redhat\3com\0\0 \1\0\1\300\f\0\5\0\1\0\0\0<\0!\10wildcard\6redhat\ 3com\7edgekey\3net\0\300,\0\5\0\1\0\0KC\0005\10wil dcard\6redhat\3com\7edgekey\3net\vglobalredir\6aka dns\300H\300Y\0\5\0\1\0\0\1\36\0\25\5e1890\1b\naka maiedge\300H\300\232\0\1\0\1\0\0\0\24\0\4H\367\17\ 326", 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, [16]) = 191
poll([{fd=3, events=POLLIN}], 1, 4978) = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [32]) = 0
recvfrom(3, "\264k\200\0\0\1\0\0\0\0\0\0\3www\6redhat\3com\0\0 \34\0\1", 1857, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, [16]) = 32
close(3) = 0