Need help debugging either a network or a sendmail problem.

Steven W. Orr steveo at syslang.net
Sun Feb 19 20:13:14 EST 2006


On Sunday, Feb 19th 2006 at 17:17 -0500, quoth Ben Scott:

=>On 2/19/06, Steven W. Orr <steveo at syslang.net> wrote:
=>> 526 > hostname
=>> saturn.syslang.net
=>> 527 >
=>[cut[
=>
=>  You might also try these:
=>
=>hostname -f
=>hostname -s
=>hostname -d
=>hostname -a
=>hostname -i

I made the change you suggested below to the hosts file.

[root at saturn etc]# hostname -f
saturn.syslang.net
[root at saturn etc]# hostname -s
saturn
[root at saturn etc]# hostname -d
syslang.net
[root at saturn etc]# hostname -a
syslang.net saturn
[root at saturn etc]# hostname -i
192.168.0.101
[root at saturn etc]#

=>
=>> And it takes almost 30 seconds to come back.

Still takes ~30 seconds.

=>
=>  Hmmm.  Smells like a DNS problem.  Try doing forward and reverse
=>lookups on the various hostnames and IP address:
=>
=>host saturn.syslang.net
=>host saturn
=>host $IP_ADDR

[root at saturn etc]# host saturn.syslang.net
saturn.syslang.net has address 207.172.210.41
[root at saturn etc]# host saturn            
Host saturn not found: 3(NXDOMAIN)
[root at saturn etc]# host 192.168.0.101
Host 101.0.168.192.in-addr.arpa not found: 3(NXDOMAIN)
[root at saturn etc]# host 207.172.210.41
41.210.172.207.in-addr.arpa domain name pointer saturn.syslang.net.
[root at saturn etc]# 

Does this tell us anything?

=>
=>> http://steveo.syslang.net/net/hosts
=>
=>I note this line:
=>
=>          192.168.0.101   saturn      syslang.net
=>
=>The first name on a line is the one returned as the "default" or
=>"primary" name.  So, given the above, one consequence will be that
=>anything trying to use name resolution to figure out it's name will
=>end up with a short (unqualified) name, "saturn".  If I had to guess,
=>from your symptoms, I would say that something is then trying to
=>resolve the name "saturn", and something is then sticking ".com" on
=>the end of it.  Hence "saturn.com" and the rest.
=>
=>  The solution is to oranize your /etc/hosts file something like this:
=>
=>          192.168.0.101   saturn.syslang.net      syslang.net  saturn
=>
=>  Also, make sure your /etc/resolv.conf file includes "syslang.net" as
=>one of the search domains.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net



More information about the gnhlug-discuss mailing list