Comments (4)
you should get 2 NS records back from lookupClient
in your example. Each one has 1 MName
.
quickly tested it, just in case...
returns:
...
;; ANSWER SECTION:
hourstrackercloud.com. 3360 IN NS ns71.domaincontrol.com.
hourstrackercloud.com. 3360 IN NS ns72.domaincontrol.com.
...
from dnsclient.net.
So the type of query I did is QueryType.SOA
and it only returns a single record (as expected for the query type). Having said that, I had not tried running a query of type QueryType.NS
. That does return two records as expected (and as your updated comment above shows).
Is it reasonable to expect the API surface for a SoaRecord
to contain the related NsRecord
s in the object graph? Personally, I think it's odd that it doesn't.
How does a QueryType.NS
query work under the hood? I'm not familiar with your codebase but would appreciate it if you could point me in the right direction so I can better understand it.
Finally, is the best way to get the IP address of an NsRecord
to do a subsequent QueryType.A
for each NsRecord
returned? I was surprised that it's also not available on the NsRecord
itself.
from dnsclient.net.
The library doesn't do anything special. It returns whatever the DNS Server you are using returns.
There is always only one SOA record and it will return only the primary master NS server.
See https://en.wikipedia.org/wiki/SOA_record
To get all nameservers, you'll query for NS
records.
There might be additional answers in the query result which resolve the FQNs of the nameservers.
Public DNS servers usually don't recursively resolve answers though and you'd have to do that yourself.
from dnsclient.net.
Got it. Thanks!
from dnsclient.net.
Related Issues (20)
- ios build issues
- How to get the parent nameservers? HOT 1
- HasError=false / no error message when hostname (not FQDN) has no ip address HOT 2
- NameServer timed out HOT 1
- mock-friendly API for ResolveService(Async) HOT 2
- Trailing `.` in MxRecord.DomainName.Value HOT 1
- Memory-leak in latest versions in combination with full .net framework HOT 1
- Exceptions in DnsClient.LookupClient.HandleDnsResponeParseException HOT 2
- How can i set my own dns servers?
- Characters should not be escaped within the audit trail <character-string>
- Verifying MX records? HOT 1
- Incorrect usage of Name from NRPT table HOT 8
- Move cache checks outside loop in ResolveQuery and ResolveQueryAsync HOT 2
- Timeout when querying TXT records HOT 1
- Eliminate dependency on Microsoft.Win32.Registry for newer TFM HOT 1
- LookupClient.QueryAsync is not concurrency-safe HOT 2
- Reduce allocations HOT 1
- Does the Internal namespace need to have public members? HOT 2
- question re: TXT records HOT 1
- Audit Log Exception - Error querying domain check in Swedish locale - Exception Parsing Question for Audit Log. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnsclient.net.