On 08/24/2018 05:40 PM, TE Dukes wrote:> >> ??? getent hosts localhost > ::1 localhostCan't say that's what I expected.? What about "getent hosts 127.0.0.1"? Also, uncomment the ::1 line in /etc/hosts.>> Can you reach localhost by "normal" means? >> ??? telnet localhost 25 > I cannot.Can you share the specific output of the command?? It might help. From what you've told us, localhost resolves to the IPv6 local address, and that address is present on your "lo" device.? You *should* be able to connect.? The type of error might indicate what is still wrong with the system.
> -----Original Message----- > From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Gordon > Messmer > Sent: Saturday, August 25, 2018 2:02 AM > To: centos at centos.org > Subject: Re: [CentOS] Mail has quit working > > On 08/24/2018 05:40 PM, TE Dukes wrote: > > > >> getent hosts localhost > > ::1 localhost > > Can't say that's what I expected. What about "getent hosts 127.0.0.1"?127.0.0.1 localhost> > Also, uncomment the ::1 line in /etc/hosts.OK> > >> Can you reach localhost by "normal" means? > >> telnet localhost 25 > > I cannot. > > > Can you share the specific output of the command? It might help. From > what you've told us, localhost resolves to the IPv6 local address, and > that address is present on your "lo" device. You *should* be able to > connect. The type of error might indicate what is still wrong with the > system. >Trying 71.28.79... telnet: connect to address 71.28.79.87: Connection timed out TIA
> > > > > > Can you reach localhost by "normal" means? > > > > telnet localhost 25 > > > > > > I cannot. > > > > > > Can you share the specific output of the command? It might help. From > > what you've told us, localhost resolves to the IPv6 local address, and > > that address is present on your "lo" device. You *should* be able to > > connect. The type of error might indicate what is still wrong with the > > system. > > > > Trying 71.28.79... > telnet: connect to address 71.28.79.87: Connection timed out >So are you saying that if you do 'telnet localhost 25' it actually tries to connect to '71.28.79.87'? If so, then that seems to indicate that host lookups are still being done primarily through DNS and it isn't looking in your /etc/hosts file. What happens if you do telnet 127.0.0.1 25 what about telnet ::1 25 P.
On 08/25/2018 03:35 AM, TE Dukes wrote:>> Can't say that's what I expected. What about "getent hosts 127.0.0.1"? > 127.0.0.1 localhostOK.? /etc/hosts isn't being used.? You indicated earlier that you had more hostnames in that file.? They should show up there. Let's go back to pastebin.? What are the contents of /etc/nsswitch.conf and /etc/hosts, now? Are you running nscd, nslcd, or sssd?? If so, you may need to stop them or flush their cache. What do you get if you "dig @localhost localhost +short".? If that doesn't return a "localhost" address, then the name server that you're running has a broken configuration. Do you get any output from "echo $HOSTALIASES"?