Add external IP addresses to bind9


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).


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.

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);

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 (or whatever you called spring properties file)


just as described here

By : WrRaThY

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