In short
Before reading a page, a crawler has to resolve your domain name, connect to the server and get a response. An outage at any of these three steps, even for a few hours, slows crawling down and, if it lasts, makes pages drop out of the index. This check consists of setting up monitoring that detects these outages before search engines do: host status checks in Search Console, external probes on DNS and HTTP, counts of the 5xx errors received by crawlers, and alerts that reach the right person. Expected result: any DNS or server outage triggers an alert within minutes.
Why it matters
Google documents precisely what happens:
- DNS errors, timeouts, connection resets: Google treats them as 5xx server errors. Crawling slows down immediately, and URLs that are already indexed but unreachable are removed from the index within a few days.
- 5xx and 429 errors: the crawl rate drops in proportion to the number of URLs in error, then URLs that stay in error are removed from the index.
- robots.txt unavailable (429 or 5xx): Google stops crawling the site for 12 hours, then uses the last known version of the file for up to 30 days.
The causes are often mundane: a domain that expires, an outdated DNSSEC (DNS Security Extensions) signature after a registrar change, an out-of-sync secondary name server, a firewall that blocks DNS queries over TCP, an overloaded database, an expired certificate. A site that remains reachable from your office can be unreachable for crawlers: a local DNS cache hides an outage, and an address banned by the firewall only affects those it targets.
Generative engines suffer from the same outages: an assistant that fetches your page during an interruption gets an error and cites another source.
What it improves
- Indexing Short outages are fixed before URLs drop out of the index.
- Crawling A stable site keeps a high crawl rate; Google reduces its crawl capacity when the site returns errors or slows down.
- Detection time A few minutes instead of the few days it takes for a Search Console report to flag the problem.
- Visitors and conversions The same outage affects your customers. This is the most direct effect.
- Rankings No direct effect from a site being available; the effect of a long outage, however, is real, since pages disappear.
How to check
1. Search Console. Open the Crawl stats report, “Host status” section. Three indicators: robots.txt fetching, DNS resolution and server connectivity. Each chart has a red threshold line; Google gives the example of DNS failures on more than 5% of a day's requests. Compliant status: no significant availability issues in the past 90 days. In the breakdown by response, watch “Server error (5XX)”, “DNS unresponsive”, “DNS error” and “Page timeout”.
2. DNS, with the commands Google recommends:
dig +nocmd example.com a +noall +answer
dig +nocmd www.example.com cname +noall +answer
dig +nocmd example.com ns +noall +answer
Then query each listed name server; they must all give the same answer:
for ns in $(dig +short NS example.com); do echo "$ns: $(dig +short @"$ns" example.com A | tr '\n' ' ')"; done
3. DNSSEC and domain expiration:
dig @8.8.8.8 example.com A +dnssec | grep -E "status:|flags:"
curl -sL https://rdap.org/domain/example.com | jq -r '.events[] | select(.eventAction=="expiration") | .eventDate'
Compliant: status: NOERROR, and the ad flag present if the zone is signed. A SERVFAIL from a public resolver while your own servers respond almost always points to a DNSSEC error. The expiration date should be far off and automatic renewal enabled.
4. Errors received by crawlers, hour by hour:
grep -E "Googlebot|bingbot" /var/log/nginx/access.log \
| awk '$9 ~ /^5/ {split($4, t, ":"); print substr(t[1], 2) " " t[2] "h"}' | sort | uniq -c
Empty output or a few isolated errors are normal. A series of errors at the same hour reveals an outage, a backup that is too heavy or a resource limit.
How to implement
Before you start
Useful monitoring rests on four elements:
| Element | What it monitors | Frequency |
|---|---|---|
| External HTTP probe | home page, robots.txt, one page per template | 1 to 5 min |
| DNS probe | answer from each name server, status at a public resolver | 5 to 15 min |
| Deadlines | domain and certificate expiration | daily |
| Logs and Search Console | rate of 5xx received by crawlers, host status | daily and weekly |
Probes must run from outside your infrastructure, ideally from several regions. A probe hosted on the monitored server goes down with it.
Probe tools: a hosted service such as UptimeRobot, whose probe types and frequencies depend on the plan, or Uptime Kuma, free and self-hosted, which offers HTTP, TCP and DNS record probes. Install it on a machine separate from the site.
Before any DNS migration, lower the TTL (caching duration) of the records one or two days in advance. Google points out that a change made in the last 72 hours may not have propagated yet; after fixing the problem, you can request a cache flush from Google Public DNS.
Free monitoring script
On a machine separate from the site, this script checks each name server, the public DNS status, the home page and robots.txt, then sends an email if anything is wrong. File /usr/local/bin/surveiller-example.sh:
#!/usr/bin/env bash
DOMAINE="example.com"
URLS=("https://example.com/" "https://example.com/robots.txt")
alertes=""
for ns in $(dig +short NS "$DOMAINE"); do
reponse=$(dig +short +time=3 +tries=1 @"$ns" "$DOMAINE" A)
if [ -z "$reponse" ]; then
alertes+="DNS: $ns is not responding for $DOMAINE\n"
fi
done
statut=$(dig @8.8.8.8 "$DOMAINE" A +dnssec | grep -o 'status: [A-Z]*' | cut -d' ' -f2)
if [ "$statut" != "NOERROR" ]; then
alertes+="DNS: public resolution returns $statut\n"
fi
for url in "${URLS[@]}"; do
read -r code temps < <(curl -s -o /dev/null -m 15 -w '%{http_code} %{time_total}' "$url")
if [ "$code" != "200" ]; then
alertes+="HTTP: $url returns $code\n"
elif awk "BEGIN {exit !($temps > 3)}"; then
alertes+="HTTP: $url is slow (${temps} s)\n"
fi
done
if [ -n "$alertes" ]; then
printf "%b" "$alertes" | mail -s "Uptime alert $DOMAINE" [email protected]
fi
Make it executable (chmod +x) and schedule it every five minutes with crontab -e:
*/5 * * * * /usr/local/bin/surveiller-example.sh
The mail command assumes a mail agent is configured on the machine; otherwise, replace it with a call to your team chat's webhook.
Cloudflare
Versions Cloudflare dashboard, all plans (Health Checks from the Pro plan), November 2026.
If Cloudflare hosts your DNS, its name servers are redundant; outages tend to come from the origin. They show up as Cloudflare-specific errors, which Google receives as 5xx:
| Code | Meaning |
|---|---|
| 521 | the origin server refuses the connection |
| 522 | connection to the origin timed out |
| 523 | origin unreachable (incorrect address or routing) |
| 524 | the origin accepted the connection but did not respond in time |
| 525, 526 | TLS handshake failed or invalid origin certificate |
Setup:
- Health Checks (Pro plans and above, now part of Smart Shield): in the zone's
Speed > Smart Shield, Health Checks section, choose “Manage” then “Create” and create an HTTPS check on/robots.txtand a key page. On the same page, “Configure an alert” creates the email notification. - Analytics: the zone's traffic dashboard lets you filter responses by code; a spike in 52x errors points to the origin.
- DNSSEC: check its status in the zone's
DNS > Settings. If you switch DNS providers, disable DNSSEC and remove the DS record at the registrar before the migration, otherwise validating resolvers will reject the domain.
AWS
Versions Route 53, CloudWatch, CloudFront and Elastic Load Balancing, with AWS CLI v2, November 2026.
With Route 53, create a health check on robots.txt, then a CloudWatch alarm. Route 53 health check metrics are published in the us-east-1 region:
aws route53 create-health-check \
--caller-reference "robots-$(date +%s)" \
--health-check-config '{"Type":"HTTPS","FullyQualifiedDomainName":"example.com","ResourcePath":"/robots.txt","Port":443,"RequestInterval":30,"FailureThreshold":3}'
aws cloudwatch put-metric-alarm --region us-east-1 \
--alarm-name example-com-indisponible \
--namespace AWS/Route53 --metric-name HealthCheckStatus \
--dimensions Name=HealthCheckId,Value=HEALTH_CHECK_ID \
--statistic Minimum --period 60 --evaluation-periods 2 \
--threshold 1 --comparison-operator LessThanThreshold \
--alarm-actions arn:aws:sns:us-east-1:123456789012:alertes
For CloudFront, monitor the distribution's 5xxErrorRate metric; for an Application Load Balancer, HTTPCode_Target_5XX_Count and HTTPCode_ELB_5XX_Count. One alarm on each, linked to the same SNS topic, covers the essentials.
Nginx
Versions Nginx 1.18 and later.
Find the causes of 502 and 504 errors in the error log:
sudo grep -E "upstream timed out|connect\(\) failed|no live upstreams" /var/log/nginx/error.log | tail -20
Add the application's response time to the logs to tell a slow server from a failed one, in the http context:
log_format temps '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time $upstream_response_time';
access_log /var/log/nginx/access.log temps;
This format keeps the fields of the standard format at the start: the commands in this guide keep working. Reload with sudo nginx -t && sudo systemctl reload nginx.
Apache
Versions Apache 2.4.
The error log (/var/log/apache2/error.log on Debian and Ubuntu, /var/log/httpd/error_log on Red Hat) reports saturated processes:
sudo grep -E "MaxRequestWorkers|server reached|AH00484|Timeout" /var/log/apache2/error.log | tail -20
The message saying that MaxRequestWorkers has been reached means that visitors and crawlers are waiting for a slot: raise the limit if memory allows, or add a page cache. Add %D (duration in microseconds) to the LogFormat to track response times.
Plesk
Versions Plesk Obsidian 18.0.
The domain's logs are in Websites & Domains > your domain > Logs, and on disk in /var/www/vhosts/system/example.com/logs/. Filter on 5xx codes and crawler user agents. On the DNS side, if Plesk hosts the zone, check in the domain's DNS settings that the A and NS records match those published by the registrar.
cPanel
Versions cPanel & WHM 110 and later (Jupiter interface).
Metrics > Errors shows the latest error log entries; Metrics > Raw Access lets you download the access logs. Recurring 508 or 503 errors on a CloudLinux server often indicate that the account's resource limit has been reached: the Metrics > Resource Usage page, when the host enables it, confirms this.
Shared hosting
You control neither the server nor, often, the DNS. Set up an external probe, enable automatic domain renewal at the registrar, and send support the exact times of the errors reported in Search Console. Errors at a fixed time every night often point to a backup or a scheduled job that is too heavy.
WordPress
Versions WordPress 6.0 to 7.1; Jetpack 13 and later for downtime monitoring.
- Error establishing a database connection: WordPress returns a 500 error; the HTTP probe detects it.
- Built-in monitoring: Jetpack's downtime monitoring sends an alert when the site stops responding. It complements an independent probe without replacing it.
- Heavy tasks: backups, imports and image regeneration in the middle of the day cause 503 errors. Schedule them at night and disable WordPress's pseudo-cron in favor of a real cron job if the site gets traffic.
Laravel
Versions Laravel 10 to 13.
The principle is the same everywhere: a /up route that queries the database and the cache, where any exception turns the response into a 500. Point your external probe at https://example.com/up.
Laravel 11 to 13
Laravel exposes a health route, declared in bootstrap/app.php:
->withRouting(
web: __DIR__.'/../routes/web.php',
health: '/up',
)
By default, it returns 200 as soon as the application boots. To make it fail when the database or the cache is unreachable, listen for the diagnosis event, for example in AppServiceProvider::boot():
use Illuminate\Foundation\Events\DiagnosingHealth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
Event::listen(function (DiagnosingHealth $event): void {
DB::select('select 1');
Cache::get('health-check');
});
Laravel 10 and earlier
These versions have neither a built-in health route nor a configurable bootstrap/app.php. Declare the route in routes/web.php:
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Route;
Route::get('/up', function () {
DB::select('select 1');
Cache::get('health-check');
return response('OK');
});
Laravel 10 has not received security fixes since February 2025: plan the upgrade.
Common mistakes
- Monitoring from the server itself: the probe goes down with the site and alerts no one.
- Only testing the home page: a cached page responds while the application is down. Add a dynamic page and robots.txt.
- Forgetting robots.txt: if it returns 5xx, Google stops all crawling for 12 hours.
- Letting the domain expire: automatic renewal fails on an expired credit card; monitor the expiration date.
- Switching DNS providers without handling DNSSEC: the old DS record makes the domain unresolvable for validating resolvers.
- Blocking DNS over TCP at the firewall: Google asks for both UDP and TCP queries to be allowed.
- Sending alerts to an address no one reads: appoint an owner and a backup.
Frequently asked questions
What does a “host status problem” in Search Console mean?
A host status problem means that Google encountered too many failures at one of three steps: fetching robots.txt, DNS resolution or connecting to the server, beyond a threshold shown in red in the Crawl stats report. Google then reduces its crawling. Open the indicator concerned to see the affected days, then look for the cause in your logs and your DNS configuration.
Does a server outage of a few hours cost rankings?
An outage of a few hours mainly causes a temporary slowdown in crawling: Google treats network and 5xx errors as a sign of overload, then increases the rate again once the site responds. The risk comes from outages that last: Google states that unreachable URLs can be removed from the index within a few days. For planned maintenance, return a 503 code with a Retry-After header.
How do I know whether my problem comes from DNS or the server?
Resolve the name with dig against each name server and against a public resolver such as 8.8.8.8. If resolution fails or returns SERVFAIL, the problem is DNS, often a DNSSEC error or an unreachable name server. If the address is correct but curl fails or times out, the problem comes from the server, the firewall or the network. Search Console also separates these two categories.
Do I need a paid tool to monitor a site's uptime?
No, free monitoring is enough for most sites. Uptime Kuma, self-hosted on a machine separate from the site, probes HTTP and DNS records, and a scheduled script using dig and curl covers the essential checks. Hosted services add probes from several regions and richer notifications. In every case, complement them with the Search Console Crawl stats report.
Resources
- Google: Debugging DNS and network errors for Google crawlersdevelopers.google.com
- Google Search Central: How HTTP status codes and network errors affect crawlingdevelopers.google.com
- Search Console Help: Crawl Stats reportsupport.google.com
- Search Console Help: DNS errorssupport.google.com
- Cloudflare: Cloudflare 5xx errorsdevelopers.cloudflare.com
- Amazon Route 53: Creating health checksdocs.aws.amazon.com
- Uptime Kuma: official repositorygithub.com
Updated on
Topic checklist (PDF)