Skip to content

Commit

Permalink
Optimization, and security issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chukhajyan committed Nov 16, 2017
1 parent 5aaa0a1 commit e468049
Show file tree
Hide file tree
Showing 10 changed files with 249 additions and 218 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,34 @@ The unix whois service allows to query even ENUM domains, although these respons

The service is built on a [Golang](https://golang.org/).

The Database is built in [PostgreSQL](https://www.postgresql.org).

For Starting server you should be set some environment variables.

- TLDNAME: Name of TLD (AM, COM, GE, etc.).
- TLDWHOISADDR: TLD WHOIS Server address (whois.amnic.net, whois.markmonitor.com, etc.).
- TLDS: Server top and second level TLD's list (.ge, .gov.ge, .com, etc.).
- DBHOST: Host of postgres DB (localhost, etc.).
- DBUNAME: Username of DB
- DBPSWD: Password for access to DB
- DBNAME: DB name where store the WHOIS data
```
DBNAME=AMNIC TLDWHOISADDR=whois.amnic.net TLDS=.ge,.gov.ge,.school.ge DBHOST=localhost DBUNAME=root DBPSWD=root DBNAME=whois go run main.go
```

Golang Version: 1.9.1
Postgres Version: 10.1

Golang Packages:
- [net](https://golang.org/pkg/net/)
- [time](https://golang.org/pkg/time/)
- [strings](https://golang.org/pkg/strings/)
- [text/template](https://golang.org/pkg/text/template/)
- [bytes](https://golang.org/pkg/bytes/)
- [log](https://golang.org/pkg/log/) TODO migrate to [syslog](https://golang.org/pkg/log/syslog/)
- [os](https://golang.org/pkg/os/)
- [gorm](http://jinzhu.me/gorm/)

Authors:
- [Khachatur Ashotyan](mailto:khachatur.ashotyan@gmail.com)
Loading

0 comments on commit e468049

Please sign in to comment.