I used dig, too. $ dig dummy.example.com | grep -3 dummy ; <<>> DiG 9.2.2 <<>> dummy.example.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24491 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;dummy.example.com. IN A ;; AUTHORITY SECTION: example.com. 7164 IN SOA dns1.icann.org. hostmaster.icann.org. 2002121701 7200 3600 1209600 21600 $ strace -eopen dig dummy.example.com 2>&1 | grep hosts $ eshsf On Thu, 6 May 2004 07:26:08 -0700 (PDT) Frank Samuel <windrainman@yahoo.com> wrote:
Yeah, I met the problem before. maybe host use dns server to find out ip.
--- eshsf <eshsf@mbj.nifty.com> wrote:
Hello, I have a question about a network.
For exmaple, /etc/hosts file is set up as follows. $ cat /etc/hosts | grep dummy 192.168.0.123 dummy.example.com
And I executed the following commands. $ host dummy.example.com Host dummy.example.com not found: 3(NXDOMAIN) $ a hostname failed in solution.
Although environment is the following, I think that result very strange. $ cat /etc/host.conf | grep order order hosts, bind $ cat /etc/nsswitch.conf | grep host hosts: files dns
I used strace, $ strace -eopen host dummy.example.com 2>&1 | grep hosts $ It did not open the hosts file.
Why does it become this phenomenon?
eshsf
-- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com
__________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover