Operating System - Linux
1751976 Members
4652 Online
108784 Solutions
New Discussion юеВ

Re: /var/run/utmp and /var/log/wtmp do not resolve IP addresses in SLES10

 
SOLVED
Go to solution
Mick Ryan
Advisor

/var/run/utmp and /var/log/wtmp do not resolve IP addresses in SLES10

Hi

I have a number of blades running SLES10 and they do not resolve the hostname of an IP address when creating the accounting records in the /var/run/utmp and /var/log/wtmp files.

So, for example, when I type who, I see only IP addresses and not hostnames.

utmpdump also show only IP addresses for the utmp file.

Any ideas where this lookup occurs? I guess it's part of the login process and thought it may be a setting from the /etc/login.defs file, but couldn't see anything obvious in there.

Thanks and Regards

Mike
2 REPLIES 2
Andrew Cowan
Honored Contributor
Solution

Re: /var/run/utmp and /var/log/wtmp do not resolve IP addresses in SLES10

Mick,

Check "/etc/resolv.conf" and /etc/nsswitch.conf" are setup to correctly resolve DNS names. The next places I would look are "sshd_config" and the PAM modules.
Mick Ryan
Advisor

Re: /var/run/utmp and /var/log/wtmp do not resolve IP addresses in SLES10

Andrew

That was where the problem was. I had the UseDNS option in the /etc/ssh/sshd_config file set to no

Cheers

Mick