I have a requirement to check DNS configuration using nslookup command. The proper way to check has been given in the following link. https://technet.microsoft.com/en-us/library/aa997324(v=exchg.65).aspx
Now the actual problem in java is how to execute the commands one by one in the same process and I have to capture the output and based upon the output I may have to execute some other commands. The screenshot is given below.
It is easy to execute a simple command like "nslookup someIpAdrs". But here the requirement is different. First of all we have to enter the shell and in the same shell, I have to execute commands.
Please suggest me about how to do in Java processBuilder or if there is any java library to achieve.