Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 75753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:33:56+00:00 2026-05-10T20:33:56+00:00

If you type nslookup -type=SRV _xmpp-server._tcp.gmail.com (or use the dig command in OSX) you

  • 0

If you type

nslookup -type=SRV _xmpp-server._tcp.gmail.com 

(or use the dig command in OSX) you get some SRV records relating to google chat

I would like to replicate this functionality in PHP, does anyone have any good ideas how to do this?

I would like to avoid using exec() as this does not return 100% standard responses across OSX/*NIX/WINDOWS

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:33:56+00:00Added an answer on May 10, 2026 at 8:33 pm

    You could use Pear Net_DNS. I managed to get this to work on Linux, but haven’t tested it on Windows or any others:

    require_once('Net/DNS.php'); $resolver = new Net_DNS_Resolver(); $response = $resolver->query('_xmpp-server._tcp.gmail.com', 'SRV'); if ($response) {     foreach ($response->answer as $rr) {         $rr->display();     } } 

    I modified the example from their documentation. hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In either a Windows or Mac OS X terminal if you type... nslookup -type=SRV
What type of transaction management strategy we should use in Spring? Declarative or Programmatic?
What type of iPhone application file should I use? Before, I was trying to
I type in this command frequently, and was trying to alias it, and couldn't
type SQLConn = val mutable private connection : string option member this.Connection with get()
Type inference makes use of the var keyword. The compiler infers what the type
Which type of Listener do I use for listening to changed text events in
I am looking for a way to get the primary and secondary NS records
What type must I make my file name to use it as an argument
type name; For reference types,this notifies the compiler that you will use name to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.