LINUX_SRV Telegram 388
Проверка доступности доменного имени с помощью bash


#!/bin/bash

# Проверка доступности домена
if [ "$#" -eq 0 ]; then
echo "Укажите хотя бы одно доменное имя!"
exit 1
fi

DOMAINS=( '.com' '.co.uk' '.net' '.org' '.ru' )
for DOMAIN in "$@"; do
for TLD in "${DOMAINS[@]}"; do
if whois "$DOMAIN$TLD" | grep -qE 'No match|NOT FOUND|available'; then
echo "$DOMAIN$TLD : доступен"
else
echo "$DOMAIN$TLD : занят"
fi
done
done

Сохраните этот скрипт в файл, например check_domain.sh, и дайте ему права на выполнение с помощью команды chmod +x check_domain.sh. Запустите его, передав доменное имя в качестве аргумента.
1



tgoop.com/linux_srv/388
Create:
Last Update:

Проверка доступности доменного имени с помощью bash


#!/bin/bash

# Проверка доступности домена
if [ "$#" -eq 0 ]; then
echo "Укажите хотя бы одно доменное имя!"
exit 1
fi

DOMAINS=( '.com' '.co.uk' '.net' '.org' '.ru' )
for DOMAIN in "$@"; do
for TLD in "${DOMAINS[@]}"; do
if whois "$DOMAIN$TLD" | grep -qE 'No match|NOT FOUND|available'; then
echo "$DOMAIN$TLD : доступен"
else
echo "$DOMAIN$TLD : занят"
fi
done
done

Сохраните этот скрипт в файл, например check_domain.sh, и дайте ему права на выполнение с помощью команды chmod +x check_domain.sh. Запустите его, передав доменное имя в качестве аргумента.

BY Типичный Сисадмин


Share with your friend now:
tgoop.com/linux_srv/388

View MORE
Open in Telegram


Telegram News

Date: |

Clear Some Telegram Channels content management tips It’s yet another bloodbath on Satoshi Street. As of press time, Bitcoin (BTC) and the broader cryptocurrency market have corrected another 10 percent amid a massive sell-off. Ethereum (EHT) is down a staggering 15 percent moving close to $1,000, down more than 42 percent on the weekly chart. Matt Hussey, editorial director at NEAR Protocol also responded to this news with “#meIRL”. Just as you search “Bear Market Screaming” in Telegram, you will see a Pepe frog yelling as the group’s featured image. Developing social channels based on exchanging a single message isn’t exactly new, of course. Back in 2014, the “Yo” app was launched with the sole purpose of enabling users to send each other the greeting “Yo.”
from us


Telegram Типичный Сисадмин
FROM American