Red Hat Bugzilla – Bug 843315
user requests support for 'whois'
Last modified: 2015-05-14 22:01:06 EDT
Description of problem:
As per https://openshift.redhat.com/community/forums/openshift/enable-whois-command-on-the-server, user is requesting 'whois' cmd enabled/installed on the platform.
Replied in the thread. This may be a limited use case.
This is an SELinux restriction, taking it.
*** Bug 847834 has been marked as a duplicate of this bug. ***
Commit 2a057163 adds support for contacting whois servers in the selinux policy.
Pull request merged.
This bug has been verified and fixed.
Please refer to the details as below:
1. Create an ruby app
#rhc app create -a ruby19 -t ruby-1.9 -p redhat
2.SSH into the app and check the port 43 status:
[ruby19-joycedev2.dev.rhcloud.com ~]\> irb
irb(main):001:0> require "socket"
irb(main):002:0> socket = TCPSocket.new("whois.nic.it", 43)
=> #<TCPSocket:fd 5>
irb(main):003:0> socket.write ("example.it\r\n")
irb(main):004:0> response = socket.read
irb(main):005:0> puts response
The port 43 is opened be default.
So mart it as verified. Thanks.