The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to configure VIM ? zedex UNIX for Dummies Questions & Answers 1 12-24-2007 07:47 AM
How to configure NIS in sun 10 rjay.com SUN Solaris 4 12-19-2006 12:37 AM
configure ssh Geraldine UNIX for Advanced & Expert Users 4 03-16-2004 12:07 AM
How to configure DNS q30 UNIX for Advanced & Expert Users 6 06-03-2002 03:31 AM
IP configure Orange UNIX for Dummies Questions & Answers 2 07-26-2001 08:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2001
jskillet jskillet is offline
Registered User
  
 

Join Date: Apr 2001
Posts: 36
Question

I am running Solaris 2.6 Server on a Sparc 10 and I was wondering how I can manually specify a DNS server to resolve hostnames. Any help will be greatly appreciated.
And also I have created a file in the /etc dir named defaultrouter and added th IP address of my router, but when I ping another computer on a seperate network it replies with something like "network unreachable from gateway X.X.X.X " where "X.X.X.X" is the IP address of my Unix machine...not the router. I was wondering if there is a command that will allow me to view all of my network settings such as IP Address, Default Gatway, DNS Servers, etc....
  #2 (permalink)  
Old 05-02-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Put a line in /etc/resolv.conf like this:

nameserver X.X.X.X

(put in your nameserver's IP address instead of X's)


You may specify more than one "nameserver" line in the resolv.conf file.

You might have to restart networking to get your /etc/defaultrouter file read in. Alternately, use the "route" command to add a default gateway. Something like:

route add default gw X.X.X.X


"netstat -r" will show your routes. "ifconfig" will show your IP address.

[Edited by PxT on 05-07-2001 at 11:02 AM]
  #3 (permalink)  
Old 08-18-2008
FloridaBSD FloridaBSD is offline
Registered User
  
 

Join Date: Jun 2008
Location: Davie
Posts: 41
Quote:
Originally Posted by PxT View Post
Put a line in /etc/resolv.conf like this:

You may specify more than one "nameserver" line in the resolv.conf file.



[Edited by PxT on 05-07-2001 at 11:02 AM]

Doeas this also apply to Linux distributions such as Fedora , I'd like to know this because I want to use the opendns servers instead of my ISPS dns servers?
  #4 (permalink)  
Old 08-20-2008
jamison_utter jamison_utter is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 11
Quote:
Originally Posted by FloridaBSD View Post
Doeas this also apply to Linux distributions such as Fedora , I'd like to know this because I want to use the opendns servers instead of my ISPS dns servers?
Yes all *NIX based resolvers (as far as a i know all OS resolvers) prefer 2 nameserver entries. You may however have more.
  #5 (permalink)  
Old 05-04-2001
jskillet jskillet is offline
Registered User
  
 

Join Date: Apr 2001
Posts: 36
I created the resolv.conf file in the /etc/ directory and added the line:
nameserver x.x.x.x

but I still cannot get any name resolution. I can access public websites via IP address, but not hostname.....weird!
  #6 (permalink)  
Old 05-05-2001
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Question

Did you add the name of your local hostname to the /etc/hosts file?
  #7 (permalink)  
Old 05-07-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Quote:
I created the resolv.conf file in the /etc/ directory and added the line: nameserver x.x.x.x
You did replace the x's with the IP address of your nameserver, right? The line should look something like:

nameserver 192.168.0.1

replace the IP with that of your DNS server.
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0