I'm currently running a DNS server with a MySQL Backend, and I'm creating scripts to insert data into the MySQL tables.
My question is: Is it possible to have the script run, then request input in the shell to then be put into the script to then be run in a query against the MySQL Server?
For example I have a query to be ran:
INSERT INTO table (domain, type, ttl) VALUES ('$domain', 'TXT', 120);
I want to change the $domain variable on each run of the script and do not want to keep editing the script file.
Thanks for any responses