*BSD News Article 10147


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA7291 ; Mon, 18 Jan 93 10:51:16 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!yale.edu!ira.uka.de!news.belwue.de!eratu.rz.uni-konstanz.de!usenet
From: zh@"nike.rz.uni-konstanz.de" (Z. Horvat)
Subject: Re: configure resolv / named
Message-ID: <1993Jan20.092309.175754@eratu.rz.uni-konstanz.de>
Sender: usenet@eratu.rz.uni-konstanz.de
Reply-To: zh@"nike.rz.uni-konstanz.de"
Organization: "RZ Universitaet Konstanz"
References: <br.pct.6.727492923@RLG.Stanford.EDU>
Date: Wed, 20 Jan 1993 09:23:09 GMT
Lines: 59

In article 727492923@RLG.Stanford.EDU, br.pct@RLG.Stanford.EDU (Peter C. Tam) writes:
>
>Hi,
>  How do you configure network in 36BSD?
>
>  I already created the file /etc/myname with my chosen name.
>
>  I edit the /etc/netstart file by:
>    (1) Uncomment named/mountd/nfsd=YES line.
>    (2) Uncomment ifconfig ec0 myname ...
>    (3) Add route add default <gateway ip address>.
>    (4) Add my host ip address & host name.Domain name in /etc/hosts
>
>  But there is no reslov to pass domain name queries to my domain name 
>  server,the /etc/resolv.conf. And there is no /etc/named.ca, /etc/named.db,
>  /etc/named.init for named (even netstart has a named=YES line). When I do 
>  nslookup, it uses its own name as the domain name sever, assign its ip 
>  address of 0.0.0.0.
>
>  How do you assign the machine an ip address? Get resolv working, or may
>  be named too. Where I can get the doc's for it?
>
>  Thank You.

Peter,

use ifconfig to setup your own ip adress, e.g.
	ifconfig ec0 111.222.333.444 *your-hostname* netmask *your-netmask*
	(this one goes in /etc/netstart)

configure the loopback interface and the default gateway :
	route add 111.222.333.444 localhost
	route add default 111.222.333.1
	(both at the bottom of /etc/netstart)

for DNS name resolution, edit /etc/resolv.conf
	domain		we.like.internet
	nameserver	111.222.333.x
	nameserver	111.222.333.y
	....

you don't have to bother with getting named running if you have nameservers which will do the
job of name resolution for you.

Have fun,
---

---------------------------------------------------
SYS337654 Could not locate coffee - Operator halted 
---------------------------------------------------

Z. Horvat
Rechenzentrum Universitaet Konstanz
++49-7531-88-2405

zh@nike.rz.uni-konstanz.de
rzhorv@nyx.uni-konstanz.de