Locally-defined host names won't resolve
From: Jim (none_at_example.com)
Date: 06/14/05
- Previous message: Ilja Sekler: "Solution for building customized kernel rpms from Fedora kernel-2.6.11-*.src.rpms"
- Next in thread: Tim: "Re: Locally-defined host names won't resolve"
- Reply: Tim: "Re: Locally-defined host names won't resolve"
- Reply: Moe Trin: "Re: Locally-defined host names won't resolve"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 13 Jun 2005 21:40:26 -0500
I have a system running Fedora Core 3, not running as a nameserver.
My domain is "example.com" (for the purposes of my question).
# echo $HOSTNAME
host.example.com
#
/etc/hosts:
127.0.0.1 localhost localhost.localdomain
192.168.1.10 a.example.com a
/etc/host.conf:
order hosts, bind
multi on
/etc/resolv.conf:
search host.example.com example.com
nameserver [one of my ISP's nameservers]
nameserver [another of my ISP's nameservers]
/etc/nsswitch.com [relevant line]
hosts: files dns
I restart the network (/etc/rc.d/init.d/network restart)
Now, when I use the "host" command
# host a
or
# host a.example.com
I get "host a not found: 3(NXDOMAIN)". Shouldn't it return
"192.168.1.10"? Using host for external host names works fine; e.g.,
# host www.mci.com
returns "www.mci.com has address 198.4.5.227".
What am I missing?
Thanks,
Jim
- Previous message: Ilja Sekler: "Solution for building customized kernel rpms from Fedora kernel-2.6.11-*.src.rpms"
- Next in thread: Tim: "Re: Locally-defined host names won't resolve"
- Reply: Tim: "Re: Locally-defined host names won't resolve"
- Reply: Moe Trin: "Re: Locally-defined host names won't resolve"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|