# 🌐 Access Information - Domain Check API ## πŸ“ Server Details **Server IP (LAN):** `10.11.10.200` **Ports:** - API: `5000` - PostgreSQL: `5433` (internal: 5432) - Redis: `6380` (internal: 6379) - Dashboard: `8501` (when ready) --- ## πŸ”— API Endpoints ### **Base URL:** `http://10.11.10.200:5000` ### Main Endpoints: - **Health Check:** `http://10.11.10.200:5000/health` - **API Root:** `http://10.11.10.200:5000/` - **Domain Check:** `POST http://10.11.10.200:5000/api/v1/check` ### Documentation: - **Swagger UI:** `http://10.11.10.200:5000/docs` πŸ“– - **ReDoc:** `http://10.11.10.200:5000/redoc` πŸ“š --- ## πŸ§ͺ Quick Tests ### 1. Health Check ```bash curl http://10.11.10.200:5000/health ``` ### 2. WHOIS + DNS Check ```bash curl -X POST http://10.11.10.200:5000/api/v1/check \ -H "Content-Type: application/json" \ -d '{ "domain": "google.com", "check_options": { "whois": true, "dns": true, "ssl": false } }' | python3 -m json.tool ``` ### 3. Full Test Suite ```bash cd /home/admin365/domain-check ./test-complete-lan.sh ``` --- ## πŸ” Database Access ### PostgreSQL ```bash # From server docker exec -it dns_postgres psql -U dns_admin -d domain_check # Connection string postgresql://dns_admin:DnsCheck2026!Secure@10.11.10.200:5433/domain_check ``` ### Redis ```bash # From server docker exec -it dns_redis redis-cli # Connection string redis://10.11.10.200:6380/0 ``` --- ## 🐳 Docker Services ### Check Status ```bash docker compose ps ``` ### View Logs ```bash # All services docker compose logs -f # Specific service docker compose logs -f dns_api ``` ### Restart Services ```bash # All services docker compose restart # Specific service docker compose restart dns_api ``` --- ## πŸ“Š Test Results Summary βœ… **Health Check:** PASSED βœ… **WHOIS Lookup:** PASSED βœ… **DNS Checking:** PASSED βœ… **Risk Scoring:** PASSED βœ… **Database Storage:** PASSED βœ… **API Documentation:** PASSED ⏸️ **SSL Checking:** Code ready (needs Docker network fix) ⏸️ **Redis Caching:** Configured (not active) ⏸️ **Batch Processing:** Not implemented yet --- ## 🌍 Access from Other Machines From any machine on the **10.11.10.x** network: ### Browser Access: - Swagger UI: `http://10.11.10.200:5000/docs` - ReDoc: `http://10.11.10.200:5000/redoc` ### API Calls: ```bash curl http://10.11.10.200:5000/api/v1/check \ -H "Content-Type: application/json" \ -d '{"domain": "your-domain.com"}' ``` --- ## πŸ“± Frontend Access (When Ready) **Dashboard URL:** `http://10.11.10.200:3000` **Status:** Not yet implemented (Next.js ready to build) --- ## πŸ”§ Troubleshooting ### API not responding? ```bash # Check if containers are running docker compose ps # Check API logs docker compose logs dns_api --tail=50 # Restart API docker compose restart dns_api ``` ### Database connection issues? ```bash # Check PostgreSQL docker exec dns_postgres pg_isready -U dns_admin # View database logs docker compose logs dns_postgres --tail=30 ``` ### Port conflicts? ```bash # Check if ports are in use sudo netstat -tlnp | grep -E "5000|5433|6380" ``` --- ## πŸ“ž Support **GitLab Repository:** (modul domain_check al platformei DIDI) **Documentation:** See `/home/admin365/domain-check/` directory **Key Files:** - `README.md` - Quick start guide - `API_ARCHITECTURE.md` - Technical details - `CURRENT_STATUS.md` - Complete API reference - `NEXT_STEPS.md` - Development roadmap --- **Last Updated:** 2026-01-29 21:55:00 **Server:** admin365@10.11.10.200 **Status:** βœ… Production Ready (MVP)