Non valid or expired DNS addresses lead to error and all following neighbors won't get added
When adding neighbors via API call, one bad DNS address will lead to an error and stops the IRI from adding any neighbor address behind that specific DNS.
Following error is returned on an neighbor whose DNS just expired:
07/24 05:51:04.588 [XNIO-1 task-2] INFO com.iota.iri.service.API - Adding neighbor: udp://XXXXX.hopto.org:14265 07/24 05:51:04.589 [XNIO-1 task-2] ERROR com.iota.iri.service.API - API Exception: java.lang.NullPointerException: null at com.iota.iri.network.Neighbor.<init>(Neighbor.java:46) ~[IRI.jar:na] at com.iota.iri.network.UDPNeighbor.<init>(UDPNeighbor.java:20) ~[IRI.jar:na] at com.iota.iri.service.API.addNeighborsStatement(API.java:802) [IRI.jar:na] at com.iota.iri.service.API.process(API.java:190) [IRI.jar:na] at com.iota.iri.service.API.processRequest(API.java:156) [IRI.jar:na] at com.iota.iri.service.API.access$000(API.java:80) [IRI.jar:na] at com.iota.iri.service.API$1.handleRequest(API.java:144) [IRI.jar:na] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:208) [IRI.jar:na] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:809) [IRI.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_131] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_131] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]