Hey Community,
First of all, Sorry for my english.
Im facing a problem with DNS on my Redhatservers.
I have 2 Servers which should use 8.8.8.8 as DNS-Server
both resolv.conf are showing this:
ping to this server works, but i cant resolve any hostnames.
So i tried to do a netcat on port 53 to 8.8.8.8:
Code:
# nc -s 10.1.33.67 -v 8.8.8.8 53
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connection refused.
As u can see, this doesnt work.
If i use the -u option (UDP), it works fine:
Code:
# nc -u -s 10.1.33.67 -v 8.8.8.8 53
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connected to 10.1.33.67:53.
So i tried it between my 2 Servers:
Code:
nc -u -s 10.1.33.67 -v 10.1.33.80 53
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connected to 10.1.33.80:53.
# nc -s 10.1.33.67 -v 10.1.33.80 53
Ncat: Version 6.40 (
http://nmap.org/ncat )
Ncat: Connection refused.
If i try the same way between both servers, i also get a refused without the -u option. If i use it, both servers connect fine. Iptables dont have any rules by now, so this cant be the trigger.
So why is netcat not possible per default (TCP) and could this be the reason, why i cant use the DNS?
Thanks a lot!