Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
3 votes
1 answer
248 views

Let me preface this by saying that I'm definitely out of my depth here in terms of knowledge. I'm trying to implement a VpnService that users of my app can enable in order for any traffic not going ...
Stelios Papamichail's user avatar
0 votes
2 answers
162 views

When I try to use a custom DNS server (either a single server using SimpleResolver or multiple servers using ExtendedResolver) and want to do a lookup for ANY records relating to a domain, I am ...
Chase Haasbroek's user avatar
0 votes
1 answer
138 views

How are DNS query retries controlled using Simple Resolver in DNSJava? Using the same resolver, we see retries of 2 and in some cases 3. It is not clear as to how it is retried. Any help in this ...
pradeep's user avatar
  • 45
0 votes
2 answers
77 views

So I'm (trying) developing a kotlin console application, where the user can sign up with an email, and in order to validate this email I use dnsjava library, but that requires me to use the slf4j and ...
r0ck-b0tt0m's user avatar
0 votes
1 answer
399 views

There is a maven artifact called xxx: Having this vanilla pom: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
Grim's user avatar
  • 2,163
0 votes
0 answers
853 views

I'm trying to retrieve the host name (or domain) of an IP address with dnsjava library by using a SimpleResolver and the ReverseMap and I wrote the following code: import java.net.InetAddress; import ...
Edgar Becker's user avatar
0 votes
0 answers
98 views

How do I convert the IP to domain name (not hostname) in java? C:\WINDOWS\system32>ping google.com Pinging google.com [142.251.42.78] with 32 bytes of data: public static void main(String[] args) { ...
Satya Prakash's user avatar
0 votes
1 answer
2k views

I am using DNSJava lib to fetch DKIM TXT records for a given selector + domain name. I want to ensure I read the record in the correct order when the record size is greater than 255 characters and ...
limo_756's user avatar
  • 187
1 vote
1 answer
324 views

I am working with an app in Android Studio. I need to use Java version 8 so I can use one library(dnsjava: https://github.com/dnsjava/dnsjava ). When I try to use java version 8 writing this in my ...
Alejandro's user avatar
0 votes
1 answer
325 views

I'm trying to resolve mx records in a kubernetes pod. The dnsjava library works when tested on mac and ubuntu outside of a container but returns an empty array once deployed. What needs to be ...
zcourts's user avatar
  • 5,057
2 votes
2 answers
2k views

I'm getting a NoClassDefFoundError with my app. I'm using dnsjava, okhttp3 and retrofit. My min API is 19. I read that the java.time package was added in API 26. Does this mean that I can't use ...
user avatar
0 votes
3 answers
748 views

Dnsjava is an implementation of DNS in Java. We have built some of our application logic around it.. Just wanted to check if Kubernetes would support DNS interfaces at application level
Yukti Kaura's user avatar
0 votes
1 answer
4k views

I am trying to query using the google public dns server (8.8.8.8) to get the IP address of some known URL. However, it seems like I am not able to get that using the following code? I am using the ...
Dany's user avatar
  • 11
0 votes
1 answer
933 views

I'm using dnsjava in my android project "android studio" I have imported the library. But when I run the code I'm getting "no records found" does anyone face this? I found a post here that talks about ...
miatech's user avatar
  • 2,296
0 votes
1 answer
174 views

I am using the Master class in the DNS Java library to parse bind zone files. However, when I try to parse the .BIZ zone file from Neustar, I get this error: org.xbill.DNS.Tokenizer$...
Adam's user avatar
  • 4,810
1 vote
1 answer
511 views

I'm using dnsjava in my android app to retrieve a txt file on the first time the app starts up. val lookup = Lookup(domain, Type.TXT) lookup.setResolver(SimpleResolver()) val records = lookup.run()...
pingOfDoom's user avatar
0 votes
1 answer
553 views

I'm attempting to read the Verisign COM master zone file using the Master parser in DNSJava. Here is an example input: ; The use of the Data contained in Verisign Inc.'s aggregated ; .com, and .net ...
Adam's user avatar
  • 4,810
2 votes
0 answers
1k views

I am trying to validate txt records in the dns in order to verify if a domain is owned by an entity. To do this I will ask the domain owner to add a txt record I provide. After they make the change I ...
Chetan Sood's user avatar
0 votes
1 answer
953 views

I'm doing query using dnsjava, and program did query 2 times, the first query is necessary and return desired result (this result only see if I capture UDP package, not in result of my program), and ...
giangh's user avatar
  • 1
0 votes
1 answer
1k views

I am trying to use dnsjava in an android app to find hostnames of devices in my local wifi network. Below is the code used: try { String ipAddress = "33.1.168.192"; String dnsblDomain = "in-addr.arpa"...
user avatar
0 votes
1 answer
707 views

I am making an application that uses a parser to parse all the master zones from the DNS, the parser I am using is from dnsjava library (org.xbill.DNS.Master). All the zones I am parsing are already ...
Anss's user avatar
  • 674
0 votes
1 answer
393 views

What is the recommended place for storing key-value pairs in a DNS request? I'm designing a system where the DNS requests traverse multiple hops. Some hops may need to append key-value pairs to the ...
manash's user avatar
  • 7,109
1 vote
0 answers
88 views

I wrote a HiveQL script like: create temporary function getdomainips as 'com.is.mail.domainspf.IpFromDomainExtract'; select Domain,getdomainips(Domain) as ips from tmp_domain; And IpFromDomainExtract ...
user2351281's user avatar
0 votes
2 answers
2k views

I want to choose what DNS server to use. I will make potentially multiple choices in the same JVM. I want to resolve IP addresses from hostnames. Things I have considered: Using System.setProperty to ...
Paul Draper's user avatar
  • 84.2k
3 votes
0 answers
439 views

I am assigned a task to update the zone files. And I found dnsjava. However, when using it to add a new Record, I am successfully creating new records using the classes NSRecord, ARecord. But since ...
Sameer Anand's user avatar
1 vote
1 answer
1k views

I want to get a list of all registered Domains for a given IP Address . Could I use PTR records. I tried the following ip = "217.13.68.220"; l = new Lookup(ip, Type.PTR ); l.setResolver(new ...
Aloras's user avatar
  • 23
0 votes
1 answer
1k views

On android I want to find list of records just by using service name. I have tried api's like dnsjava and jmdns but all returned empty results. I have come across this similar Question but no one has ...
user3842632's user avatar
1 vote
1 answer
3k views

In trying to avoid having a hostname looked up from the public DNS for testing purposes, I need to essentially set /etc/hosts file, but I don't always know what hostnames I'll need to override the IP ...
Drizzt321's user avatar
  • 1,031
2 votes
3 answers
3k views

dnsjava has DNSSEC support. I'd like to do a simple Lookup, just like the Lookup examples ( http://www.xbill.org/dnsjava/dnsjava-current/examples.html ), but have dnsjava tell me if it validates ...
SRobertJames's user avatar
  • 9,377
-1 votes
1 answer
586 views

I'm developing a function that queries a list of DNS servers using DNSJava library to check if a specific domain is blacklisted. Here you have the portion of code that make the check. At the end you ...
mark's user avatar
  • 959
2 votes
1 answer
1k views

I'm using the following code (dnsjava) to retrieve records from dns. Record[] records1 = null; Lookup look; try { look = new Lookup(domainName,Type.A); try { look.setResolver(new ...
Anu's user avatar
  • 177
0 votes
1 answer
919 views

I am able to update A, AAAA, and TXT records without an issue. Unfortunately, I haven't yet been able to find any examples of how to update a PTR record. Here's the code I'm using to send the ...
gorillacanon's user avatar
0 votes
2 answers
2k views

I have an Android app to which I am trying to add DNS SRV record detection. I know it is possible, based on the existence of apps such as DNS Lookup, which I have installed, and it works just fine. ...
Big-O Claire's user avatar
1 vote
1 answer
4k views

I have written following code to get MX record for any Domain, here google.com public class DNSRec { public static void main(String... args) { try{ Record [] records = new Lookup("http://...
Prashant Shilimkar's user avatar
2 votes
1 answer
2k views

I am trying to create a DNS service (automation of various DNS operations) to serve our existing private cloud. I am looking for options and ideas to do this. Is there any existing Java API to do this?...
eddyrokr's user avatar
  • 414
2 votes
1 answer
2k views

How can I find the nameservers of a domain name like google.com using Java? I m using "dnsjava" library to find out the host details, MX records, bind version and zone transfer. But I m unable to ...
Sonia Sharma's user avatar
0 votes
1 answer
3k views

After I registered dnsjava as default Java DNS provider I get a problem. It can't resolve local addresses which described in /etc/hosts file on my Linux machine. This file look something like this: ...
artspb's user avatar
  • 1,157
0 votes
2 answers
2k views

Here's the method- public static String getHostByAddr(byte[] addr) throws UnknownHostException { Name name = ReverseMap.fromAddress(InetAddress.getByAddress(addr)); final String[] servers = ...
Sudhanshu Umalkar's user avatar
6 votes
1 answer
2k views

I have an android app which has dnsjava.jar in the /libs/ directory of the project. Everything built fine and can be packaged into APK (without proguard). However, when i introduced proguard into the ...
Pell's user avatar
  • 81
1 vote
1 answer
3k views

Our environment is setup with multiple apache httpd's that serve as reverse proxies to a various backend java servers (mostly tomcat servers). We'd like to write a script to hit each individual ip ...
Upgradingdave's user avatar
0 votes
1 answer
3k views

How can I ask DNS server e.g 8.8.8.8 for google.com domain? On this http://www.xbill.org/dnsjava/dnsjava-current/examples.html page is example how can you send request for specified domain, but how ...
OnTheFly's user avatar
  • 2,101
2 votes
0 answers
3k views

I searched a lot but I didn't find a clear answer. My goal is to make java methods that can add and delete dns entries from a dns server. I installed and configured bind9 dns server on a debian VM. I'...
user1618018's user avatar
1 vote
3 answers
2k views

Working with the dnsjava library, I've encountered a frustrating and confusing problem where I can call Type.A properly but calling Type.value(str) throws a java.lang.NoClassDefFoundError. System....
kwarrick's user avatar
  • 6,260
7 votes
1 answer
14k views

I'm building a fast web crawler and I need to have multithreaded DNS resolution, so I picked up a multithreaded DNS service provider called dnsjava. Unfortunately, I can't figure out how to replace ...
Kiril's user avatar
  • 40.6k