Fake DNS query result inside a test (original) (raw)
Vincent Ryan Vincent.X.Ryan at Oracle.Com
Wed Nov 7 12:51:14 UTC 2012
- Previous message: Fake DNS query result inside a test
- Next message: Fake DNS query result inside a test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Are you suggesting to run a local DNS server? If so then it is easy to access that via a JNDI context.
If you're proposing developing a basic JNDI service provider then that would be more effort.
On 7 Nov 2012, at 01:05, Weijun Wang wrote:
Hi Vinnie
I want to write a regression test so that Context ctx = NamingManager.getURLContext("dns", new Hashtable<>(0)); Attributes attrs =((DirContext)ctx).getAttributes( "kerberos.udp.ASDF.COM.", SRVRRATTR); can return some entries without querying a real external server. Is this possible by registering a local name server provider or else? Thanks Max
- Previous message: Fake DNS query result inside a test
- Next message: Fake DNS query result inside a test
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]