This is a very strange problem. Very inconsistent in my opinion.
- I can ping any servers on my network via IP address.
- I can do 'nslookup' for any sites on the Internet. nslookup returns a correct IP address.
- Firefox can access Mozilla web site only. I can use IP address to access other websites, but I can't use DNS name.
- I turned off firewall services. It did not make any difference.
Seems like DNS gets blocked for some reason. But if it was really blocked, I should not do "nslookup' thing.
There is no hardware problem. The network card is working good. I did not have this issue with Centos 5.X. Seems like there is some sort of network blocking software running, but I can't figure that out.
A very strange DNS problem
Re: A very strange DNS problem
I've seen this behavior when SELINUX doesn't like something about /etc/resolv.conf
Did you, perhaps, copy an old version back to this host? Or symlink it to another file elsewhere on the system?
You may need to perform a relabel of your system -- to do this, you create an empty file called /.autorelabel and reboot. This process can take a long time, especially if you have a lot of local storage.
Did you, perhaps, copy an old version back to this host? Or symlink it to another file elsewhere on the system?
You may need to perform a relabel of your system -- to do this, you create an empty file called /.autorelabel and reboot. This process can take a long time, especially if you have a lot of local storage.
Re: A very strange DNS problem
[quote]
jkhord wrote:
I've seen this behavior when SELINUX doesn't like something about /etc/resolv.conf
Did you, perhaps, copy an old version back to this host? Or symlink it to another file elsewhere on the system?
You may need to perform a relabel of your system -- to do this, you create an empty file called /.autorelabel and reboot. This process can take a long time, especially if you have a lot of local storage.[/quote]
I did not copy the old version. The resolv.conf was created during the install.
Is "relabel" related to SELINUX?
jkhord wrote:
I've seen this behavior when SELINUX doesn't like something about /etc/resolv.conf
Did you, perhaps, copy an old version back to this host? Or symlink it to another file elsewhere on the system?
You may need to perform a relabel of your system -- to do this, you create an empty file called /.autorelabel and reboot. This process can take a long time, especially if you have a lot of local storage.[/quote]
I did not copy the old version. The resolv.conf was created during the install.
Is "relabel" related to SELINUX?
Re: A very strange DNS problem
Do an
[code]
ls -laZ /etc/resolv.conf
[/code]
and see what the SELinux context is now. It should be system_u:object_r:net_conf_t
[code]
ls -laZ /etc/resolv.conf
[/code]
and see what the SELinux context is now. It should be system_u:object_r:net_conf_t
Re: A very strange DNS problem
[quote]
TrevorH wrote:
Do an
[code]
ls -laZ /etc/resolv.conf
[/code]
and see what the SELinux context is now. It should be system_u:object_r:net_conf_t[/quote]
I did it. The file has the same permission.
TrevorH wrote:
Do an
[code]
ls -laZ /etc/resolv.conf
[/code]
and see what the SELinux context is now. It should be system_u:object_r:net_conf_t[/quote]
I did it. The file has the same permission.
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
A very strange DNS problem
[quote]
I did it. The file has the same permission.
[/quote]
No. Not the file permissions but the file SELinux context. They are totally different entities.
Please post, for [b]Trevor[/b] to see, the output returned by --
[code]
[b]ls -laZ /etc/resolv.conf[/b]
[/code]
I did it. The file has the same permission.
[/quote]
No. Not the file permissions but the file SELinux context. They are totally different entities.
Please post, for [b]Trevor[/b] to see, the output returned by --
[code]
[b]ls -laZ /etc/resolv.conf[/b]
[/code]