Note: This is an article about DNS troubleshooting, because on the Internet (including the RedHat knowledge base), there is almost no direct description of the errors mentioned in this article and a report on the best and fastest solution is provided, this article was released only after one hour of troubleshooting and data query. Yesterday I Just configured a DNS server on the RedHatEnterpriseLinuxServer in a non-production environment for testing. But soon I encountered a strange error. I'm executing "servicenamed
Note: This is an article about DNS troubleshooting, because on the Internet (including the RedHat knowledge base), there is almost no direct description of the errors mentioned in this article and a report on the best and fastest solution is provided, this article was released only after one hour of troubleshooting and data query.
Yesterday I Just configured a DNS Server on the Red Hat Enterprise Linux Server in a non-production environment for testing. But soon I encountered a strange error.
After "service named status" is executed, the first line displays the following content:
- [root@localhost ~]# service named status
- rndc: connect failed: 127.0.0.1#953: connection refused
- named (pid 6207) is running...
- [root@localhost ~]#
As we all know, rndc is mainly used to control the named process and its configuration file. It can be used to connect to the DNS server and reload the configuration. The port number is 953. So what are the possible causes of this error?
My solution:
First, read the Echo information of the Command carefully. For example, you can view the service status in detail.
- [root@localhost gdd]# service --status-all
- abrtd (pid 2371) is running...
- abrt-dump-oops (pid 2379) is running...
- acpid (pid 2111) is running...
- atd (pid 5396) is running...
- auditd (pid 1833) is running...
- automount (pid 2195) is running...
- avahi-daemon (pid 2016) is running...
- Usage: /etc/init.d/bluetooth {start|stop}
- certmonger is stopped
- Stopped
- cgred is stopped
- Frequency scaling enabled using ondemand governor
- crond (pid 2423) is running...
- cupsd (pid 2086) is running...
- dnsmasq is stopped
- dovecot is stopped
- Usage: /etc/init.d/firstboot {start|stop}
- hald (pid 2120) is running...
- I don't know of any running hsqldb server.
- httpd (pid 6595) is running...
- Table: filter
- Chain INPUT (policy ACCEPT)
- num target prot opt source destination
- 1 ACCEPT all ::/0 ::/0 state RELATED,ESTABLISHED
- 2 ACCEPT icmpv6 ::/0 ::/0
- 3 ACCEPT all ::/0 ::/0
- 4 ACCEPT tcp ::/0 ::/0 state NEW tcp dpt:22
- 5 REJECT all ::/0 ::/0 reject-with icmp6-adm-prohibited
-
- Chain FORWARD (policy ACCEPT)
- num target prot opt source destination
- 1 REJECT all ::/0 ::/0 reject-with icmp6-adm-prohibited
-
- Chain OUTPUT (policy ACCEPT)
- num target prot opt source destination
-
- IPsec stopped
- Table: filter
- Chain INPUT (policy ACCEPT)
- num target prot opt source destination
- 1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
- 2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
- 3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
- 4 ACCEPT tcp -- 10.0.0.0/8 0.0.0.0/0 tcp dpt:953
- 5 ACCEPT tcp -- 10.0.0.0/8 0.0.0.0/0 tcp dpt:53
- 6 ACCEPT tcp -- 10.0.0.0/8 0.0.0.0/0 tcp dpt:443
- 7 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
- 8 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
-
- Chain FORWARD (policy ACCEPT)
- num target prot opt source destination
- 1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
-
- Chain OUTPUT (policy ACCEPT)
- num target prot opt source destination
-
- Table: mangle
- Chain PREROUTING (policy ACCEPT)
- num target prot opt source destination
-
- Chain INPUT (policy ACCEPT)
- num target prot opt source destination
-
- Chain FORWARD (policy ACCEPT)
- num target prot opt source destination
-
- Chain OUTPUT (policy ACCEPT)
- num target prot opt source destination
-
- Chain POSTROUTING (policy ACCEPT)
- num target prot opt source destination
-
- Table: nat
- Chain PREROUTING (policy ACCEPT)
- num target prot opt source destination
-
- Chain POSTROUTING (policy ACCEPT)
- num target prot opt source destination
-
- Chain OUTPUT (policy ACCEPT)
- num target prot opt source destination
-
- irqbalance (pid 1895) is running...
- Kdump is operational
- started
- qpidd is stopped
- matahari-qmf-hostd is stopped
- matahari-qmf-networkd is stopped
- matahari-qmf-serviced is stopped
- matahari-qmf-sysconfigd is stopped
- Checking for mcelog
- mcelog is stopped
- mdmonitor is stopped
- messagebus (pid 1993) is running...
- mysqld is stopped
- rndc: connect failed: 127.0.0.1#953: connection refused
- named is stopped
- No open transaction
- netconsole module not loaded
- Configured devices:
- lo eth0
- Currently active devices:
- lo eth0
- NetworkManager (pid 2004) is running...
- rpc.svcgssd is stopped
- rpc.mountd is stopped
- nfsd is stopped
- rpc.rquotad is stopped
- rpc.statd (pid 2037) is running...
- nmbd is stopped
- ntpd (pid 2243) is running...
- oddjobd is stopped
- portreserve (pid 1851) is running...
- master (pid 2347) is running...
- postmaster is stopped
- Process accounting is disabled.
- qpidd (pid 2390) is running...
- quota_nld is stopped
- rdisc is stopped
- restorecond (pid 10836) is running...
- rhnsd (pid 2445) is running...
- rhsmcertd (pid 2457 2456) is running...
- rngd is stopped
- rpcbind (pid 1909) is running...
- rpc.gssd is stopped
- rpc.idmapd (pid 2076) is running...
- rpc.svcgssd is stopped
- rsyslogd (pid 1858) is running...
- sandbox is stopped
- saslauthd is stopped
- sfcb is not running, but pid file exists
- smartd is stopped
- smbd is stopped
- snmpd is stopped
- snmptrapd is stopped
- spamd is stopped
- spice-vdagentd is stopped
- openssh-daemon (pid 2233) is running...
- sssd is stopped
- CIM server (2470) is runningtomcat6 is stopped [ OK ]
- vsftpd is stopped
- wdaemon is stopped
- Webmin (pid 2498) is running
- wpa_supplicant (pid 2020) is running...
- ypbind is stopped
Apparently, the 97th rows shown above
- rndc: connect failed: 127.0.0.1#953: connection refused
- named is stopped
Is an error message.