What would be a script that appends A records to DNS via user input?

This is how I imagined its workflow:

Script asks user for name.

Stores the provided name in a variable.

(line break)Script asks user for IP address.

Stores the provided IP in a variable.

Script appends NAME IN A IP(properly formatted) at the end of the /path/to/zone/file.

sudo service bind9 reload


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.