-   Linux - Newbie (
-   -   How do get ALL information about my network (

hemmelig 12-08-2004 01:58 PM

How do get ALL information about my network
Currently i'm trying to configure the network in NetBSD 2.0 . I want to get information about my network (hostname, DSN-domain etc). Does anybody know how to get this information? The network is DHCP after all i know.

twilli227 12-08-2004 08:28 PM


If your network is setup to use DHCP, all you need to do is set "dhclient=yes" in /etc/rc.conf, and the DHCP client will be started at boot time to automatically configure your machine's IP address, hostname, default router, nameservers and domainname used. See here for more information on DHCP.


Naming a New Host on the Network (top)

To allow access by hostname as well as by IP number, the new hostname and its IP number are added to the network configuration files. There are a number of ways to manage this;

1. /etc/hosts: hosts(5) For small networks of a few hosts, the hostname/IP maps can be manually duplicated in the /etc/hosts files of each host.

/etc/hosts: host2

2. NIS (Network Information Service, formerly known as Yellow Pages (YP) enables the /etc/hosts files on the network to be automatically synchronised (along with other configuration files like passwd and group information). See domainname(1), ypinit(8) and yp(8) as well as the ypbind and domainname variables in rc.conf(5) for more information.

3. DNS: The hostname maps can be centralised into zone-files which are accessed by the name-server, named(8). (there are many documents at dealing with setting up and maintaining DNS files).

This thread will probably be moved to the *BSD forum.

scuzzman 12-08-2004 11:45 PM


$ /sbin/ifconfig -a && cat /etc/resolv.conf
This should give you most your information.

All times are GMT -5. The time now is 09:58 AM.