Giter VIP home page Giter VIP logo

Comments (4)

remotelyliving avatar remotelyliving commented on June 26, 2024

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.

remotelyliving avatar remotelyliving commented on June 26, 2024
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.

neradp avatar neradp commented on June 26, 2024

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.

remotelyliving avatar remotelyliving commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.