add-dns
CI / Build (push) Has been cancelled Details

This commit is contained in:
root 2024-06-30 20:12:39 +08:00
parent f05d0362b5
commit 80cc46a8ca
1 changed files with 11 additions and 0 deletions

11
add-dns.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# 要添加的IP地址
IP="8.137.84.255"
# 要解析的域名
DOMAIN="pms.docker"
# 检查是否已经存在该DNS记录
if ! grep -q "$IP\s*$DOMAIN" /etc/hosts; then
echo "$IP $DOMAIN" >> /etc/hosts
fi