LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do get ALL information about my network (http://www.linuxquestions.org/questions/linux-newbie-8/how-do-get-all-information-about-my-network-264124/)

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

Quote:

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.
http://www.netbsd.org/Documentation/...#adding_a_host

http://www.netbsd.org/Documentation/network/dhcp.html

Quote:

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:
192.168.1.2 host2.mydomain.org.au 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 www.dns.net dealing with setting up and maintaining DNS files).
http://www.netbsd.org/Documentation/...#adding_a_host
http://www.netbsd.org/Documentation/network/

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

scuzzman 12-08-2004 11:45 PM

Code:

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


All times are GMT -5. The time now is 04:05 AM.