FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-10-2008, 09:02 PM
Brian McKee
 
Default system not using hosts file

I don't understand why 'host fred' doesn't return 127.0.0.1

==> host -v fred
Trying "fred.realsubdomain.realdomainname.com"
Trying "fred.realdomainname.com"
Trying "fred"
Host fred not found: 3(NXDOMAIN)
Received 97 bytes from 192.168.0.2#53 in 0 ms


==> cat /etc/hosts
127.0.0.1 localhost.localdomain localhost fred
14.0.0.1 fake.fakelocaldomain fred2 fred3
192.168.0.11 realhostname.realsubdomain.realdomainname.com
realhostname


==> cat /etc/host.conf
order hosts,bind
multi on
nospoof on
spoofalert on

==> cat /etc/resolv.conf
search realsubdomain.realdomainname.com realdomainname.com
nameserver 192.168.0.2

# ppp temp entry


I confess this isn't a debian box, but it should be :-)
(It's actually Mandrake, but I don't think that's pertinent to this
problem)
Why are all domain name requests going to the nameserver first?
Doesn't host.conf control that?


Comments appreciated
Brian
 
Old 04-10-2008, 09:20 PM
Bob Cox
 
Default system not using hosts file

On Thu, Apr 10, 2008 at 17:02:14 -0400, Brian McKee (map@map-heb.com) wrote:

>
> I don't understand why 'host fred' doesn't return 127.0.0.1
>
> ==> host -v fred
> Trying "fred.realsubdomain.realdomainname.com"
> Trying "fred.realdomainname.com"
> Trying "fred"
> Host fred not found: 3(NXDOMAIN)
> Received 97 bytes from 192.168.0.2#53 in 0 ms
>
>
> ==> cat /etc/hosts
> 127.0.0.1 localhost.localdomain localhost fred
> 14.0.0.1 fake.fakelocaldomain fred2 fred3
> 192.168.0.11 realhostname.realsubdomain.realdomainname.com
> realhostname
>
> ==> cat /etc/host.conf
> order hosts,bind
> multi on
> nospoof on
> spoofalert on
>
> ==> cat /etc/resolv.conf
> search realsubdomain.realdomainname.com realdomainname.com
> nameserver 192.168.0.2
>
> # ppp temp entry
>
>
> I confess this isn't a debian box, but it should be :-)
> (It's actually Mandrake, but I don't think that's pertinent to this
> problem)
> Why are all domain name requests going to the nameserver first? Doesn't
> host.conf control that?

Does 'ping fred' work?

--
Bob Cox. Stoke Gifford, near Bristol, UK.
 

Thread Tools




All times are GMT. The time now is 10:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org