Create dns_custom_hostnames.sh
This commit is contained in:
9
dns_custom_hostnames.sh
Executable file
9
dns_custom_hostnames.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat > /run/dnsmasq.conf.d/dns_custom_hostnames.conf <<- "EOF"
|
||||
# Add records here following this fomrat
|
||||
# host-record=hostname.domainname.com,hostname,<ipaddress>
|
||||
|
||||
EOF
|
||||
|
||||
kill -9 `cat /run/dnsmasq.pid`
|
||||
Reference in New Issue
Block a user