Skip to content

LookupSession assumes to follow redirects with Type.CNAME #279

@OrientationZero

Description

@OrientationZero

hello,

dig www.baidu.com result like this:
www.baidu.com.    IN CNAME www.a.shifen.com.
www.a.shifen.com. IN A          163.177.151.100
www.a.shifen.com. IN A          163.177.151.99

my code like this:

        LookupSession look = LookupSession.defaultBuilder().build();
        Name name = Name.fromString("www.baidu.com");
        look.lookupAsync(name, Type.CNAME)
                .thenAccept(f -> System.out.println(f))
                .toCompletableFuture().get();

result is :
LookupResult(records=[], aliases=[www.baidu.com.])

but I expect CNAME record:
www.baidu.com. IN CNAME www.a.shifen.com.

But using Lookup can do right thing,so what should I do?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions