No of visitors who read this post: 404
Category: CentOS Linux
Type: Question
Author: Ayannahana
No votes yet

I'm having some DNS issues on a new box I'm installing with CentOS 6.2. I am able to look up names using nslookup, dig, or host. I am able to ping machines by name or by IP address.

However, when I try other tools, such as ssh, wget, or yum, they are unable to resolve names. What should I do?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#

Hello,

First and foremost, please end up the firewall process and always does this whenever you are troubleshooting or having issues with the network. I would like to recommend you to try on these several ways.

1. Type iptables-L to check whether the firewall has already been stopped properly. Your input should look like this :

[root@server1 ~]# iptables -L

Chain INPUT (policy ACCEPT)

target prot opt source destination

Chain FORWARD (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

[root@server1 ~]#

2. Type (/etc/selinux/config) to check whether the selinux is running properly or having any strange activity.

3. Please type route-n and check the output given.

4. Type /etc/sysconfig/network-scripts/ifcfg-eth0 and see what is the result.

5. Try to ping your gateway and check whether is there any issues raised or not.

I hope you can diagnose the issue with few clues given.