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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-08-2004, 02:58 PM
|
#1
|
Member
Registered: Oct 2004
Posts: 33
Rep:
|
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.
|
|
|
12-08-2004, 09:28 PM
|
#2
|
Member
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760
Rep:
|
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 09:29 PM.
|
|
|
12-09-2004, 12:45 AM
|
#3
|
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851
Rep:
|
Code:
$ /sbin/ifconfig -a && cat /etc/resolv.conf
This should give you most your information.
|
|
|
All times are GMT -5. The time now is 11:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|