Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome. |
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.
|
|
03-10-2006, 11:22 AM
|
#1
|
Member
Registered: Sep 2005
Location: Tripoli/Libya
Distribution: Solaris
Posts: 73
Rep:
|
configuring new IP
please can any one help me with this I have S OS 5.10 and i have been changed my IP by #ifconfig command and editing /etc/hosts but when I reboot the machine it takes the old one I think there is anotther file need to edit but I forget it bc I did it before and it's work so any one one can remind me by the right way
|
|
|
03-10-2006, 01:02 PM
|
#2
|
Member
Registered: Feb 2006
Location: India
Posts: 167
Rep:
|
check files
find /etc -name hosts -print
Check the listed files
|
|
|
03-10-2006, 01:06 PM
|
#3
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
running "sys-unconfig" is the supported way.
Otherwise, look for /etc/hostname.*, /etc/hosts, /etc/inet/ipnodes and /etc/nodename
That may depend on the name service you choosed too.
Last edited by jlliagre; 03-10-2006 at 01:08 PM.
|
|
|
03-12-2006, 04:17 PM
|
#4
|
Member
Registered: Jan 2006
Posts: 168
Rep:
|
jallegre is right.
You probably forgot to change the /etc/inet/ipnodes. In solaris 10, it takes precedence over /etc/inet/hosts regardless if you use ipv6.
|
|
|
03-12-2006, 10:50 PM
|
#5
|
LQ Newbie
Registered: Feb 2006
Posts: 29
Rep:
|
One more question: how to set DNS server to connect to the internet, now i can't ping www.yahoo.com or other websites
|
|
|
03-13-2006, 02:13 AM
|
#6
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
Either by telling the Solaris installer or directly with two files:
/etc/resolv.conf:
nameserver 123.45.67.89
/etc/nsswitch.conf:
hosts files dns
|
|
|
03-13-2006, 03:39 AM
|
#7
|
LQ Newbie
Registered: Feb 2006
Posts: 29
Rep:
|
sorry, but no file names resolv.conf in /etc
|
|
|
03-13-2006, 03:54 AM
|
#8
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
What about creating it ?
|
|
|
03-13-2006, 04:54 AM
|
#9
|
LQ Newbie
Registered: Feb 2006
Posts: 29
Rep:
|
I created file /etc/resolv.conf like this:
Code:
execve("/usr/bin/cat", 0xEFFFF740, 0xEFFFF74C) argc = 2
open("/dev/zero", O_RDONLY) = 3
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xEF7B0000
open("/usr/lib/libc.so.1", O_RDONLY) = 4
fstat(4, 0xEFFFF2DC) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF7A0000
mmap(0x00000000, 704512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0xEF680000
munmap(0xEF714000, 57344)
= 0
mmap(0xEF722000, 28368, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|
MAP_FIXED, 4, 598016) = 0xEF722000
mmap(0xEF72A000, 2528, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|
MAP_FIXED, 3, 0) = 0xEF72A000
close(4) = 0
open("/usr/lib/libdl.so.1", O_RDONLY) = 4
fstat(4, 0xEFFFF2DC) = 0
mmap(0xEF7A0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|
MAP_FIXED, 4, 0) = 0xEF7A0000
close(4) = 0
open("/usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1", O_RDONLY) = 4
fstat(4, 0xEFFFF0BC) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF790000
mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0xEF780000
close(4) = 0
close(3) = 0
munmap(0xEF790000, 8192) = 0
fstat64(1, 0xEFFFF648) = 0
open64("resolv.conf", O_RDONLY) = 3
fstat64(3, 0xEFFFF5B0) = 0
llseek(3, 0, SEEK_CUR) = 0
mmap64(0x00000000, 98, PROT_READ, MAP_SHARED, 3, 0) = 0xEF790000
read(3, " d", 1) = 1
memcntl(0xEF790000, 98, MC_ADVISE, 0x0002, 0, 0) = 0
domain paulwatters.com
nameserver 192.168.40.2
nameserver 58.187.7.111
nameserver 58.187.7.111
write(1, " d o m a i n p a u l w a t t e r s .".., 98) = 98
llseek(3, 98, SEEK_SET) = 98
munmap(0xEF790000, 98) = 0
llseek(3, 0, SEEK_CUR) = 98
close(3) = 0
close(1) = 0
llseek(0, 0, SEEK_CUR) = 57655
_exit(0)
is this right?
Last edited by lennoguard; 03-13-2006 at 05:06 AM.
|
|
|
03-13-2006, 05:34 AM
|
#10
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
/etc/resolv.conf should only contain ip addresses of your nameservers e.g.
Code:
nameserver 192.168.2.100
nameserver 192.168.1.100
search somedomain.com
|
|
|
03-13-2006, 06:10 AM
|
#11
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
Why did you send a truss output ???
anyway your resolv.conf file looks ok:
Code:
domain paulwatters.com
nameserver 192.168.40.2
nameserver 58.187.7.111
nameserver 58.187.7.111
Last edited by jlliagre; 03-13-2006 at 06:13 AM.
|
|
|
03-14-2006, 11:40 AM
|
#12
|
Member
Registered: Sep 2005
Location: Tripoli/Libya
Distribution: Solaris
Posts: 73
Original Poster
Rep:
|
yes i found it /etc/ipnodesthatis it thx every one for fast replying
|
|
|
All times are GMT -5. The time now is 05:03 AM.
|
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
|
|