Add external IP addresses to bind9

Question!

I've setup a DNS Server with bind9 to resolve all local addresses within my network. I have some external IP addresses which I'd like to add as well. Is this possible with bind9? The external IP's reside on AWS(If that helps).



Answers

Yes it is possible.

See below configuration file that you need to achieve your use case /etc/bind/named.conf.options file

 Sudo nano /etc/bind/named.conf.options
 forwarders {
 # Give here your IP
  };

For more information check below read too. http://askubuntu.com/questions/330148/how-do-i-do-a-complete-bind9-dns-server-configuration-with-a-hostname



One way to do this is by keeping a static reference to the thread you just created. In your received, do:

public YourReceiver extends BroadcastReceiver {
  @Nullable public static ConnectedThread thread;

  public void onReceive(...) {
    thread = new ConnectedThread(btSocket);
    thread.start();
  } 
}

Then from whatever class you're in, you can reference the thread via YourReceiver.thread.

The main disadvantage of this approach is that keeping a static reference to the ConnectionThread is wasteful (the ConnectionThread won't be GC'd until you release that reference) so make sure that you nullify it whenever you're done. Another problem that you might run into is that you make sure to check the internal state of the thread before using it, namely whether it's still running or has already finished executing.



all you need to do is add this to your app.properties (or whatever you called spring properties file)

server.address=<your_ip>

just as described here

By : WrRaThY


This video can help you solving your question :)
By: admin