how to open specific port


 
Thread Tools Search this Thread
Operating Systems Solaris how to open specific port
# 8  
Old 03-02-2009
Dear Frozentin:-
i try to restart nscd service vi svcadm
when i try to start this service
svcs -a | grep nscd
i didn't find it
so restart this servive by this way
/etc/inet.d/nscd
when i try to search for this agin with
svcs -a | grep nscd



sorry i didn't know how to use /etc/nsswitch.conf

Note:-
when i try to access internet with DHCP service all thing will working right
# 9  
Old 03-09-2009
finally i found the solution


Dear Member;
when i searching on the internet and submit the problem in a lot of forum
i for the solution


OpenSolaris depend on NIS service when need to determine to resolve the domain name

this linke explain the subject
http://en.wikipedia.org/wiki/Network...mation_Service
and this is the command that resolve my problem


Code:
cp /etc/nsswitch.dns /etc/nsswitch.conf
svcadm enable svc:/network/dns/client:default                
svcadm restart system/name-service-cache:default


Last edited by dellroxy; 03-09-2009 at 11:03 AM..
# 10  
Old 03-19-2009
# 11  
Old 03-19-2009
You do not need NIS to use DN

[quote=dellroxy;302295699]

OpenSolaris depend on NIS service when need to determine to resolve the domain name

Sorry but DNS lookups does not depend on NIS, you can use NIS for name resolution within your own network but that won't help resolve names on the Net.

If you can ping something using its IP address the then the network is okay as you showed:
ping 4.2.2.2
4.2.2.2 is alive

The problem is due to failed DNS lookups as was shown:
# ping www.yahoo.com
Ping: unknown host Yahoo!

As has already been stated you need to mention dns in the hosts line in /etc/nsswitch.conf and you need to populate the /etc/resolv.conf with at the very least a line specifying a DNS server's IP address, e.g.:
nameserver 4.2.2.1

If you do not know what DNS server you should be using, then use the ones provided by OpenDNS | Providing A Safer And Faster Internet so the lines in /etc/resolv.conf would be:
nameserver 208.67.222.222
nameserver 208.67.220.220


Confirm you can ping them and you should be up and running if not confirm that no firewall is blocking things by running:

$ telnet 208.67.222.222 53

If you see the response as below:
Trying 208.67.222.222...
Connected to 208.67.222.222.
Escape character is '^]'.

Then you have connected to the DNS server at 208.67.222.222 on port 53, if it just hangs and you do not see the "Escape caharacter is '^'" then you have not managed to connect to the DNS server and a firewall may be blocking port 53.

Tony Fuller
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10: How to just open a port - nothing else

Hi there, I tried just open a port but I failed ;-( # telnet localhost 9876 That should work so I did ... # vi /etc/services myport 9876/tcp # my port # svcadm restart inetd -> New pid, see ps - ef | grep inet # netstat -an | grep 9876 No port 9876 is waiting ;( #... (4 Replies)
Discussion started by: System
4 Replies

2. HP-UX

How to open 443 port in HP-UX?

Hello Experts, I want to open the port 443 on my HP-UX system. can you please help ? Thanks in advance. (1 Reply)
Discussion started by: purushottamaher
1 Replies

3. IP Networking

Tcp ip port open but no such process (merged: Release A Port)

i want to kill a tcp connection by killing its pid with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies

4. UNIX for Advanced & Expert Users

how to open port in linux

hi experts, I'm using Linux Centos kernel 2.6 Here is the print out of some my port : tcp 0 0 127.0.0.1:10080 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:10081 0.0.0.0:* LISTEN tcp 0 0... (4 Replies)
Discussion started by: justbow
4 Replies

5. Solaris

Open port on Solaris 10

Hi All, I am installing Infosphere (ETL tool) on solaris 10. One of the requirement is to open multiple ports for different apps that will be installed. I ran netstat -n | grep 9080 (,etc) but that did not return anything. I have attached the requirement. Can anyone guide me about how to... (3 Replies)
Discussion started by: sumeet
3 Replies

6. Solaris

how to open a specific port

Hi All, Can anyone let me know that how to open a specific port in Solaris 10. I just wanted to know if there are some certain commands to open a port (like ftp, telnet). It would be also better if someone can tell me if there is another firewall service in Solaris 10 except ipfilter. ... (6 Replies)
Discussion started by: naw_deepak
6 Replies

7. IP Networking

Unknown open port: "6881/tcp open bittorrent-tracker" found with nmap

Hi. I ran nmap on my server, and I get the following: Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-19 16:33 EDT Interesting ports on -------- (-----): Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 6881/tcp open bittorrent-tracker The... (0 Replies)
Discussion started by: Rledley
0 Replies

8. AIX

How to open a port in AIX

Hi Guys, i am trying to open a port in AIX. but i am not able to get the command for this. AIX is not having the iptables file present. So please any body can tell me how to open a port in AIX... Thanks sanju (2 Replies)
Discussion started by: sanju_d1231
2 Replies

9. Linux

open port

How can I open a port on linux machine ??? (5 Replies)
Discussion started by: mm00123
5 Replies
Login or Register to Ask a Question