Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-08-2004, 02:58 PM   #1
Registered: Oct 2004
Posts: 33

Rep: Reputation: Disabled
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.
Old 12-08-2004, 09:28 PM   #2
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
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.

Last edited by twilli227; 12-08-2004 at 09:29 PM.
Old 12-09-2004, 12:45 AM   #3
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Network Interface Information manikchopra Programming 2 08-17-2005 11:48 AM
Multiplatform Theoretical Network - Some information before I try this out, please? techsimian Linux - Networking 1 02-12-2005 02:39 AM
Network Information Service twisted Linux - Networking 1 08-26-2003 07:36 PM
Basic network information dalraidia Linux - Newbie 7 12-16-2002 10:51 PM
Getting Network Interface Information yrraja Programming 5 11-11-2002 12:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration