...
Info |
---|
Please note that description below is for servers where HostBill is located under /home/hostbill/public_html/ directory, adjust details below if you use different location for your HostBill install. |
Install xinetd
For CentOS 7 call:Code Block language bash yum install xinetd
Add file: /etc/xinetd.d/rwhois with following content:
Code Block language bash service rwhois { protocol = tcp disable = no wait = no server = /home/hostbill/public_html/includes/modules/Other/ipam/rwhois.php port = 4321 user = hostbill group = hostbill socket_type = stream type = UNLISTED instances = UNLIMITED }
Start/enable xinetd:
Code Block language bash systemctl start xinetd systemctl enable xinetd
Testing RWhois IPAM
- Assign IP address in your IPAM to a customer
Issue whois command in linux shell.
Replace rwhois.hostbillapp.com with your actual HostBill hostname and IP address with one assigned in step above:Code Block language bash whois -h rwhois.hostbillapp.com -p4321 192.168.0.2
Your RWhois server should reply with something simmilar to:
Code Block language bash %rwhois V-1.0,V-1.5:002090:00 rwhois.hostbillapp.com (HostBill RWhois Server V-1.0.0) autharea=192.168.0.0/28 xautharea=192.168.0.0/28 network:Class-Name:network network:Auth-Area:192.168.0.0/28 network:ID:NET-3.192.168.0.2 network:Network-Name: network:IP-Network:192.168.0.2 network:IP-Network-Block:192.168.0.2 network:Org-Name:Christopher Nolun network:Street-Address:Another network:City:Another network:State:Alabama network:Postal-Code:Another network:Country-Code:US network:Tech-Contact:TECH-3.192.168.0.2 network:Created:20171108110858000 network:Updated:20171108111756000 network:Updated-By:noc@hostbillapp.com contact:POC-Name:Network Administrator contact:POC-Email:noc@hostbillapp.com contact:POC-Phone: contact:Tech-Name:Christopher Nolun contact:Tech-Email:test@test.com contact:Tech-Phone:+1-123-12312311 %ok