Comments (4)
Hi @neradp thanks for reporting this issue and suggesting a fix! Can you please provide me with an example MX entry for a host that has that field? I haven't seen it in the documentation and don't see it in MX queries in general i.e. https://dns.google.com/resolve?name=christianthomas.me&type=MX
from php-dns.
christians-mbp:php-dns chthomas$ make repl
Psy Shell v0.9.9 (PHP 7.3.4 — cli) by Justin Hileman
>>> $data = $googleDNSResolver->getRecords('christianthomas.me', 'MX')->pickFirst()->getData()->getPriority()
{
"dns.query.profiled": {
"elapsedSeconds": 0.15275883674621582,
"transactionName": "GoogleDNS:christianthomas.me.:MX",
"peakMemoryUsage": 8464416
}
}
{
"dns.queried": {
"resolver": "GoogleDNS",
"hostname": "christianthomas.me.",
"type": "MX",
"records": [
{
"hostname": "christianthomas.me.",
"type": "MX",
"TTL": 1236,
"class": "IN",
"data": "5 alt1.aspmx.l.google.com."
},
{
"hostname": "christianthomas.me.",
"type": "MX",
"TTL": 1236,
"class": "IN",
"data": "5 alt2.aspmx.l.google.com."
},
{
"hostname": "christianthomas.me.",
"type": "MX",
"TTL": 1236,
"class": "IN",
"data": "10 aspmx3.googlemail.com."
},
{
"hostname": "christianthomas.me.",
"type": "MX",
"TTL": 1236,
"class": "IN",
"data": "1 aspmx.l.google.com."
},
{
"hostname": "christianthomas.me.",
"type": "MX",
"TTL": 1236,
"class": "IN",
"data": "10 aspmx2.googlemail.com."
}
],
"empty": false
}
}
=> 5
>>>
from php-dns.
Yes you are right...
It was not issue in your code..
It was issue in my own adapter .. i was trying to extend some your classes to work with some api to edit dns zones.. that api returns non standard MX record info
Sorry, sometimes i need more cafe
from php-dns.
No worries, I totally understand! I’m always looking for my next cup of coffee hehe. If there’s anything you find useful as you extend these and add new functionality please don’t be shy proposing them upstream! Thanks again.
from php-dns.
Related Issues (20)
- Non Blocking Chain Resolver
- Support symfony/event-dispatcher 4.3 HOT 4
- Better Unit Tests
- SRV records HOT 4
- RemoteSystem Resolver HOT 5
- Dig resolver incorrect result HOT 10
- Update spatie/dns version HOT 2
- Update psr/cache and psr/log HOT 7
- TXT Record value handling. HOT 2
- Unable to query PTR, PTRData is missing in DataAbstract factory HOT 4
- Upgrade Usages of Serializeable Interface to Magic Methods HOT 1
- Ability to use this in Symfony 6 (and Laravel 9) HOT 4
- Undefined constant "DNS_CAA" on Windows
- Chaining with consensus could lead to unpredictable results HOT 2
- DNSRecord toArray missing data array HOT 4
- Allow passing multiple DNSRecordType's to getRecords HOT 1
- mandrill._domainkey.domain.com. is not a valid hostname HOT 2
- PSR-18 migration HOT 1
- GoogleDNS: DNS type 46 HOT 10
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 php-dns.