10-25-2001
where did you enter all that information before?
- your gateway address should go in the /etc/defaultrouter file
- your hostname should go in the /etc/hostname.xxx file where xxx is le0, hme0, etc depending on what NIC is in the machine.
- your IP address needs to be in the /etc/hosts file along with the hostname.
That should be all there is to getting it going. If you can't resolve names, check the /etc/nsswitch.conf file for the keyword "dns" in the line that begins with "hosts"
Also, you'll need an /etc/resolv.conf file containing your search domain, and the ip addresses of your DNS servers.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI..
i was wondering if someone out there can help me setup my internet connection.... i have no clue how to set it up.. could you please tell me step by step how to set it up.. i have a static ip, im using a cable modem to connect. my os is solaris 8. Please email me at lil_souldier@hotmail.com... (2 Replies)
Discussion started by: souldier
2 Replies
2. Solaris
I have a sun wokstation running solaris 9 , I want to configuring my lan card to access internet .
my IP address : 192.168.144.20
ISP gateway : 192.168.144.1
DNS address : 202.56.250.5
all helps will be appreciated
thanks (2 Replies)
Discussion started by: una
2 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone, I just installed Solaris 10 in my PC. However, once I finished installing it, I lost my internet connection. When I switch to windows, the internet can run smoothly. Does anyone know how to set up internet connection in Solaris ? I am so sorry, I am new in UNIX (7 Replies)
Discussion started by: qqq
7 Replies
4. UNIX for Dummies Questions & Answers
Hi,
1)If someone could help me out that how could i connect to internet.
Below is the system specification, and i have dial up connection.
Sun UltraSPARC-IIi 270MHz processor
256 MB memory
8.4 GB HDD
100/10BaseT Ethernet
CD-ROM drive
3.5" Floppy drive
2)Also, how to connect Sun to... (0 Replies)
Discussion started by: younics
0 Replies
5. Linux
I'm having fedora core4.I have a ADSL modem and can access through Windows.I tried setting up internet connection in linux using setup command and netconfig,but doesn't work. can anybody help me with the steps in detail.also can i use the same ip address as in windows? (7 Replies)
Discussion started by: laddu
7 Replies
6. UNIX for Dummies Questions & Answers
Hi all :)
I got a problem that I need to solve here, its kinda confusing me.
I got servers which is RHEL that its not supposed to connect to internet, but right now I want this server to connect to internet, so firewall and everything already open. but I have no idea why it still unable to... (2 Replies)
Discussion started by: flekzout
2 Replies
7. BSD
Hi friends! :)
I have got an Acer laptop. in one of the partion's I have got PC BSD installed. I am new UNIX user coz first I was using Windows, so I am still learning it. I only know few commands, and I find it very interesting.
Unfrtunately, when I log into PC BSD, I can't connect to the... (3 Replies)
Discussion started by: dubbio123
3 Replies
8. UNIX for Dummies Questions & Answers
I am using SUSE OS and want to check internet connection...
I have tried:
ping -c3 google.com
The output i have got is:
Unknown host google.com
does it means that i do not have Internet connection??
Or please help me with any Command to find Internet connection?
Thanks for any help. (1 Reply)
Discussion started by: salil2012
1 Replies
9. Solaris
I got solaris 10 works, but I cannot set up my internet connection. When I ping a website and i open the web browser, it doesn't work.
When the installation asked 'Am I in a network?' i answerd 'no'. I think this is my minstake. How can i get Internet, now?
I have a ADSL modem (not router).... (5 Replies)
Discussion started by: mghis
5 Replies
10. IP Networking
Hello all,
Recently took a dive into Unix using Fedora 12 atm. I have cable modem with DHCP and a linksys 8 port router. With windows I was able to simple use the uplink port and plug each computer into the switch and use the internet connection. Having no luck doing the same in Unix. I have... (0 Replies)
Discussion started by: Fingerz
0 Replies
LEARN ABOUT OSF1
res_init
res_init(3) Library Functions Manual res_init(3)
NAME
res_init - Searches for a default domain name and Internet address
LIBRARY
Standard C Library (libc.a, libc.so)
SYNOPSIS
#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h>
void res_init ( void );
DESCRIPTION
The res_init() function reads the /etc/resolv.conf file for the default domain name and the Internet address of the initial hosts running
the name server, even if the name server is not functioning.
The res_init() function is one of a set of subroutines that form the resolver, a set of functions that resolve domain names. All resolver
functions use the /usr/include/resolv.h header file, which defines the _res data structure. The res_init() function stores domain name
information in the _res data structure.
NOTES
If the /etc/resolv.conf file does not exist, the res_init() function attempts name resolution using the local /etc/hosts file. If the sys-
tem is not using a domain name server, the /etc/resolv.conf file should not exist. The /etc/host file should be present on the system even
if the system is using a name server. In this instance, the file should contain the host IDs that the system requires to function even if
the name server is not functioning.
FILES
Contains the name server and domain name.
Contains hostnames and their addresses for hosts in a network. This file is used to resolve a hostname into an Internet address.
RELATED INFORMATION
Functions: dn_comp(3), dn_expand(3), dn_find(3), dn_skipname(3), _getlong(3), _getshort(3), putlong(3), putshort(3), res_mkquery(3),
res_query(3), res_search(3), res_send(3). delim off
res_init(3)