I have a problem with host name resolution on my Linux box running Debian 3.0 Woody with KDE. Konqeror (or any browser) returns "unknown host..." while using hostname but works fine using IP address. Ping fails too with "unknown host...".
Still nslookup returns:
Server: 192.168.2.1
Address: 192.168.2.1#53
Non-authoritative answer:
Name: debian.org
Address: 192.25.206.10
My home network consist of one Linux box and two WinXp boxes connected to internet through a DSL modem on a firewall-router which has the address 192.168.2.1. All boxes are configured with static IPs and using netmask 255.255.255.0. Default gateway and nameserver addresses are set to 192.168.2.1. WinXp boxes have no problems to resolve hostnames.
I've read about 45 Faqs, Howtos and forum threads and tried all config combinations I could work out without getting the problem solved or even located.
My current configuration on the Linux box is:
/etc/resolv.conf:
domain myhomenet
search myhomenet
nameserver 192.168.2.1
nameserver 195.54.122.204
(the last one is provided by my ISP and yes I'm able to ping it)
/etc/host.conf:
order hosts,bind
multi on
/etc/hosts:
127.0.0.1 localhost loopback
Code:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
myhomenet * 255.255.255.0 U 0 0 0 eth0
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
Most faq's keep telling about running a DNS service using BIND but that is not what I want. My intention is to keep using my ISP's name server for external name resolution.
What am I still missing??