How to Point a Domain to Your Server: DNS Records Explained
Connect your domain to a VPS or hosting account with confidence. DNS record types in plain English, nameservers vs individual records, TTL and propagation, email records…
A calm, practical runbook for the first hour of a DDoS attack: how to tell an attack from a traffic spike, what to send your host, which mitigations to apply and how to harden afterwards.
A distributed denial-of-service (DDoS) attack floods a server or network with traffic from many sources, aiming to make it unavailable. If you run anything popular, from a game server to a store, you may face one eventually. The worst time to plan your response is during the attack. This runbook gives you a clear sequence to follow so you can act quickly and calmly.
| Type | Target | Examples | Who mitigates |
|---|---|---|---|
| Volumetric | Network bandwidth | UDP floods, amplification (DNS, NTP, memcached) | Provider or upstream filter |
| Protocol | Network stack, firewalls, connection tables | SYN floods, fragmented packets | Provider filter, plus OS tuning |
| Application layer (L7) | Your app, web server or database | HTTP floods, expensive search or login requests | You, with rate limits, caching and a WAF |
Understanding the type tells you where to focus. You cannot out-bandwidth a large volumetric attack from inside your server, but you can do a lot against an application-layer flood.
nload, iftop or vnstat -lss -s and ss -tan state syn-recv | wc -l for SYN floodsawk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | headtop or htopIf you cannot reach the server over SSH, use the provider's console to log in.
Send a concise message to support. RexaHost support is available 24/7 on Telegram @rexahost, by email at support@rexahost.com and via tickets. Include:
Post a short status update on a channel hosted elsewhere, such as social media or a status page on separate infrastructure. Users are more patient when they know you are working on it.
limit_req_zone and limit_req cap requests per second.sysctl net.ipv4.tcp_syncookies should return 1.If the link itself is saturated, nothing you do on the server helps, because the traffic arrives before your firewall sees it. This is handled by the provider's network filter or an upstream mitigation service. Your job is to give the provider accurate information and keep legitimate ports documented.
A simple per-IP limit stops a single source from overwhelming your application while leaving normal visitors unaffected:
# in the http block
limit_req_zone $binary_remote_addr zone=perip:10m rate=10r/s;
# in the server or location block
location / {
limit_req zone=perip burst=20 nodelay;
}
# stricter for login
location = /wp-login.php {
limit_req zone=perip burst=3;
}
Test changes with nginx -t before reloading. Start generous and tighten as you learn what normal traffic looks like; overly strict limits can block real users behind shared networks such as offices or mobile carriers.
Many attacks target the server's IP address directly. If you use a reverse proxy or CDN in front of a website, make sure the origin IP is not leaked:
Some attacks come with ransom demands. Security agencies generally advise not paying: it funds criminals, does not guarantee the attack stops and may mark you as a willing payer. Keep evidence such as messages, timestamps and logs, and report the extortion to law enforcement in your country.
Launching DDoS attacks is illegal in most countries, and using any RexaHost server to attack others leads to immediate suspension on every track, including privacy-focused locations. If your server is compromised and used in an attack, the abuse team will contact you; cooperating quickly and cleaning up the server is the fastest route back to normal service.
| Step | Action |
|---|---|
| 1 | Confirm it is an attack, not a deployment or legitimate spike |
| 2 | Classify: volumetric, protocol or application |
| 3 | Contact support with IP, time, symptoms and logs |
| 4 | Post a status update on separate infrastructure |
| 5 | Rate limit, cache, block patterns, close ports |
| 6 | Protect the origin IP |
| 7 | Recover, review and harden |
Running a service that attracts attention? Choose a VPS, VDS or dedicated server with headroom, and keep this runbook where your team can find it.
Typical signs are a sudden surge of traffic or connections from many sources, saturated bandwidth, very high CPU from requests, and a slow or unreachable service, often without a matching rise in real users.
Yes, early. Share the affected IP, the start time, the symptoms and any logs. The network team can see traffic patterns you cannot.
Not a large volumetric one. Attacks that saturate your network link must be filtered upstream by your provider or a mitigation service. You can mitigate application-layer attacks with rate limiting and caching.
RexaHost places a DDoS filter in front of the network. No filter stops every attack, so pair it with good application practices and an incident plan.
Security agencies generally advise against paying. Payment does not guarantee the attack stops and can make you a repeat target. Report extortion to the relevant authorities.
Plans in this article
Keep reading
Connect your domain to a VPS or hosting account with confidence. DNS record types in plain English, nameservers vs individual records, TTL and propagation, email records…
Hosting adverts love uptime percentages. Here is what 99.95% means in real minutes, the difference between a target and a contractual SLA, and how to measure availabilit…
Snapshots alone are not a backup plan. How to apply the 3-2-1 rule to a VPS with automated, encrypted, off-site backups and regular restore tests.