LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 12-08-2004, 01:58 PM   #1
hemmelig
Member
 
Registered: Oct 2004
Distribution: FreeBSD, NetBSD, OpenBSD, Slackware GNU/Linux
Posts: 33

Rep: Reputation: 15
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, 08:28 PM   #2
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

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

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

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


Reply


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 10:48 AM
Multiplatform Theoretical Network - Some information before I try this out, please? techsimian Linux - Networking 1 02-12-2005 01:39 AM
Network Information Service twisted Linux - Networking 1 08-26-2003 06:36 PM
Basic network information dalraidia Linux - Newbie 7 12-16-2002 09:51 PM
Getting Network Interface Information yrraja Programming 5 11-10-2002 11:46 PM


All times are GMT -5. The time now is 06:42 AM.

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