I wish to follow my previous append on name resolution problems.
I think I have simplified the issue a lot. This is the current
situation.
Holding my breath until somebody saves me 8-> .....
TIA
-- 
Robert J. Alexander <[EMAIL PROTECTED]>
AIX Certified System Administrator - Debian Linux addict - Win.\* victim
Via Sciangai, 53 - 00144 Rome, Italy
I am going crazy on a name resolution problem.
Dunno exactly what I goofed ...
My host command does not resolve names (name to address) anymore ... keeps 
resolving reverse (address to name).
Building info offline and sending all data I can think of in hope some superior 
being will help me understand ...
Thank you in advance. Bob Alexander <[EMAIL PROTECTED]>
--------------------------------------------------------------------------------
I am running a disconnected machine with a Debian slink linux with a 2.0.34 
kernel.

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >hostname
localhost

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >cat /etc/hosts
127.0.0.1       localhost       loopback
9.87.2.151      pan             pan.ncrome.romesc.italy.ibm.com

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >host 127.0.0.1
Name: localhost
Address: 127.0.0.1
Aliases: loopback

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >host 9.87.2.151
Name: pan
Address: 9.87.2.151
Aliases: pan.ncrome.romesc.italy.ibm.com

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >host localhost
Nameserver not running
localhost A record not found, try again

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >host pan
Nameserver not running
pan A record not found, try again

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >host pan.ncrome.romesc.italy.ibm.com
Nameserver not running
pan.ncrome.romesc.italy.ibm.com A record not found, try again

--------------------------------------------------------------------------------
/etc/resolv.conf -> I removed it ... even tried a len 0 ...

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >cat /etc/nsswitch.conf
hosts:          files dns

passwd:         db files
group:          db files
shadow:         db files

networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       db files

--------------------------------------------------------------------------------
[EMAIL PROTECTED] >cat /etc/host.conf
order hosts,bind
multi on

--------------------------------------------------------------------------------
each time I do a failing query such as "host pan" in /var/log/syslog I see
appearing lines such as the following:
Aug 12 16:32:24 localhost icmplogd: destination unreachable from localhost 
[127.0.0.1]

but of course a ping to my loopback succeeds:
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=1.7 ms
--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.7/1.7/1.7 ms

and my ifconfig command returns:
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:96 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0 

iptraf, upon giving a "host localhost" command type gives this info:
UDP  from 127.0.0.1:1076 to 127.0.0.1:domain on lo   
UDP  from 127.0.0.1:1076 to 127.0.0.1:domain on lo  
ICMP dest unreach (port) from 127.0.0.1 to 127.0.0.1 on lo  
ICMP dest unreach (port) from 127.0.0.1 to 127.0.0.1 on lo 

Played with the /etc/hosts.allow and deny ... nothing changed.

--------------------------------------------------------------------------------
On Debian the host command is coming from the dnsutils package:
[EMAIL PROTECTED] >dpkg -s dnsutils
Package: dnsutils
Status: install ok installed
Priority: standard
Section: net
Installed-Size: 482
Maintainer: Bdale Garbee <[EMAIL PROTECTED]>
Source: bind
Version: 1:8.1.2-2
Conflicts: netstd (<< 2.00)
Description: Utilities for querying the DNS
This package includes the "nslookup", "dig", and "host" programs
for querying information from the Domain Name System (DNS).  It
also includes several short aliases (mx, ns, soa, zone, aaaa)
for querying specific information.

--------------------------------------------------------------------------------
[EMAIL PROTECTED] > dpkg -s libc6
Package: libc6
Status: install ok installed
Priority: required
Section: base
Installed-Size: 1505
Maintainer: Dale Scheetz <[EMAIL PROTECTED]>
Source: glibc
Version: 2.0.7t-1
Pre-Depends: ldso (>= 1.8.10-1)
Conflicts: libc5 (<< 5.4.33-7), libpthread0 (<< 0.7-10)
Description: The GNU C library version 2 (run-time files).
 Includes shared libraries needed to run programs.

--------------------------------------------------------------------------------
I had bind (8.1) installed in a slave config but now removed it to make things 
more clear. stopped it with ndc stop, purged the package, rebooted, removed any 
trace I could find. ps aux | grep named returns nil

--------------------------------------------------------------------------------
If I connect (network card or slip) to my network of course I will normally use 
another nameserver without problems.

--------------------------------------------------------------------------------
I cannot think of any other data I might provide .... just mention that thank 
you to El Nino I am tackling this problem with a 37degC (99degF) air 
temperature.

Reply via email to