Mailinglist Archive: opensuse-amd64 (470 mails)
| < Previous | Next > |
Re: [suse-amd64] hostname resolution
- From: eshsf <eshsf@xxxxxxxxxxxxx>
- Date: Thu, 6 May 2004 14:45:01 +0000 (UTC)
- Message-id: <20040506234316.3ab592f3.eshsf@xxxxxxxxxxxxx>
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@xxxxxxxxx> wrote:
> Yeah, I met the problem before.
> maybe host use dns server to find out ip.
>
> --- eshsf <eshsf@xxxxxxxxxxxxx> 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@xxxxxxxx
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
$ 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@xxxxxxxxx> wrote:
> Yeah, I met the problem before.
> maybe host use dns server to find out ip.
>
> --- eshsf <eshsf@xxxxxxxxxxxxx> 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@xxxxxxxx
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
| < Previous | Next > |