[Wylug-help] Dual NIC, hosts, resolv and all that

David Whiteley D.L.Whiteley at leeds.ac.uk
Fri Feb 3 12:21:51 GMT 2006


My brain hurts.  I am doing something stupid.

I am configuring a couple of machines.  They both have dual NICs, one
connected to a  "world" subnet and the other to a non-routable subnet
with machines node01 node02 etc.

Lets call them "foo" and "bar".

Let us call the nonroutable network "private" [192.168.0.0] and the
outer network world.org  say [123.123.123.0]

In my /etc/hosts I have 


###################################################

127.0.0.1       localhost.localdomain   localhost

123.123.123.10  foo.world.org foo
123.123.123.11  bar.world.org bar

192.168.0.1     foo.private  foo 
192.168.0.2     bar.private  bar 

192.168.0.101   node01.private    node01
192.168.0.102   node02.private    node02
192.168.0.103   node03.private    node03
192.168.0.104   node04.private    node04

################################################

In /etc/host.conf  I have 

##############################
order hosts,bind
multi on
#############################

In my /etc/resolv.conf I have 

################################################
search private world.org
nameserver ........
nameserver .........

################################################

My /etc/networks is 

#####################################
localnet  123.123.123.0
private   192.168.0.0
#####################################

When I run 

#  host -v node01.private 

I get

##########################################
Trying "node01.private"
Trying "node01.world.org"
Trying "node01"
Host node01 not found: 3(NXDOMAIN)

##########################################

and 

#  host foo

seems to use the DNS rather that the host table.

What have I missed?

Dave






-- 
Dave Whiteley
The School of Electronic and Electrical Engineering
The University of Leeds
Leeds
d.l.whiteley at ee.leeds.ac.uk
0113 343 2059




More information about the Wylug-help mailing list