[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Plot thickens (Was: SEMI-SOLVED (Was: SIGBUS in Apache (Mysql client)))



Quoting Turbo Fredriksson <turbo@debian.org>:

>>>>>> "Turbo" == Turbo Fredriksson <turbo@debian.org> writes:
>
>     Turbo> To me, it looks like it's a problem in the NSS stack... !?
>
> Problem seems weirder than this! I changed 'hosts: files ...' to 'hosts: compat ...'
> in nsswitch.conf and apache started working. But then my spamassassin setup
> stoped working:
>
> ----- s n i p -----
> root@aurora# ping localhost
> ping: unknown host localhost
> root@aurora# ping localhost.
> PING localhost (127.0.0.1) 56(84) bytes of data.
> 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.292 ms
> 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.250 ms
>
> --- localhost ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 1010ms
> rtt min/avg/max/mdev = 0.250/0.271/0.292/0.021 ms
> root@aurora# head -n1 /etc/hosts
> 127.0.0.1       localhost
> root@aurora# grep ^host /etc/nsswitch.conf
> hosts:          compat dns [!UNAVAIL=return]
> ----- s n i p -----
>
>
> But if I put 'files' back, then I can't login (via krb5-telnetd)!

It seems like anytime I involve the DNS, telnet/telnetd stop working...

----- s n i p -----
root@rigel# cat /etc/host.conf
order hosts
multi on
root@rigel# cat /etc/hosts
127.0.0.1       localhost
root@rigel# cat /etc/resolv.conf
search <domain>
nameserver 127.0.0.1
root@rigel# grep ^host /etc/nsswitch.conf
hosts:          files
root@rigel# ping -c 1 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.102 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.102/0.102/0.102/0.000 ms
root@rigel# ping -c 1 www.telia.se
ping: unknown host www.telia.se
----- s n i p -----

Here everything (but the last ping - obviously) works exactly as
expected. But if I put back 'order hosts,bind' and 'hosts: files dns'
respectivly:

----- s n i p -----
root@rigel# ping -c 1 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.149 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.149/0.149/0.149/0.000 ms
root@rigel# ping -c 1 www.telia.se
PING www.telia.se (193.44.158.232) 56(84) bytes of data.
64 bytes from www.telia.se (193.44.158.232): icmp_seq=1 ttl=245 time=43.6 ms

--- www.telia.se ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 43.649/43.649/43.649/0.000 ms
----- s n i p -----

.. but I can't telnet into the machine:

----- s n i p -----
[pumba.pts/9]$ telnet -axl root rigel
Trying <hostip>...
Connected to <hostfqdn> (<hostip>).
Escape character is '^]'.
Waiting for encryption to be negotiated...

Encryption could not be enabled.  Good-bye.
----- s n i p -----


Reply to: