3.5 KiB
3.5 KiB
🌐 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
curl http://10.11.10.200:5000/health
2. WHOIS + DNS Check
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
cd /home/admin365/domain-check
./test-complete-lan.sh
🔐 Database Access
PostgreSQL
# 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
# From server
docker exec -it dns_redis redis-cli
# Connection string
redis://10.11.10.200:6380/0
🐳 Docker Services
Check Status
docker compose ps
View Logs
# All services
docker compose logs -f
# Specific service
docker compose logs -f dns_api
Restart Services
# 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:
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?
# 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?
# Check PostgreSQL
docker exec dns_postgres pg_isready -U dns_admin
# View database logs
docker compose logs dns_postgres --tail=30
Port conflicts?
# 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 guideAPI_ARCHITECTURE.md- Technical detailsCURRENT_STATUS.md- Complete API referenceNEXT_STEPS.md- Development roadmap
Last Updated: 2026-01-29 21:55:00 Server: admin365@10.11.10.200 Status: ✅ Production Ready (MVP)