SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Wizard silver trophy
    beley's Avatar
    Join Date
    May 2001
    Location
    LaGrange, Georgia
    Posts
    6,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Find A, Cname, MX Records for Domain?

    Is there an easy (and free) way to find all the DNS records for a domain name?

    We have a client who is unhappy with their current web host... we have setup hosting and email for them (hosting through us, email through Google Apps for Businesses).

    We are ready to move them, but in order to make the move more transparent, we need to find all the DNS records, set them up in our DNS and set the MX record to the old server (so they don't lose any mail). Then we'll move the DNS, and after it propagates, we'll just change the MX record which will only have a 5 minute TTL.

    The process works great, we've done it before... but we don't know all their domain name records.

    I've used dnsreport.com but they've gone to a paid model, so I can't get the report unless I sign up for a trial account ($79 a year if you don't cancel in time).

    If you know of an easier way to get the records, you would save me a lot of hassle!

    Thanks...

  2. #2
    SitePoint Evangelist
    Join Date
    Aug 2007
    Posts
    566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you have access to a linux box, you can use
    Code:
    host -a domain_name
    to display all the visible infos:
    Code:
    host -a sitepoint.com
    Trying "sitepoint.com"
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51075
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
    
    ;; QUESTION SECTION:
    ;sitepoint.com.                 IN      ANY
    
    ;; ANSWER SECTION:
    sitepoint.com.          172800  IN      NS      ns.rackspace.com.
    sitepoint.com.          172800  IN      NS      ns2.rackspace.com.
    
    ;; AUTHORITY SECTION:
    sitepoint.com.          172800  IN      NS      ns2.rackspace.com.
    sitepoint.com.          172800  IN      NS      ns.rackspace.com.
    
    ;; ADDITIONAL SECTION:
    ns.rackspace.com.       432     IN      A       69.20.95.4
    ns2.rackspace.com.      432     IN      A       65.61.188.4
    
    Received 136 bytes from 193.58.255.37#53 in 180 ms
    The "answer" section is what you seek. It's the server that have answered our request.

    Otherwise, usually when you do an
    Code:
    whois domain_name
    , you can get the DNS servers too
    Code:
    whois sitepoint.com
    
    Whois Server Version 2.0
    .... snippity .... snippity.... snippity....
    Name Servers:
       ns.rackspace.com
       ns2.rackspace.com
    
    Creation date: 04 Oct 1999 12:23:14
    Expiration date: 04 Oct 2010 12:23:14

  3. #3
    SitePoint Wizard silver trophy
    beley's Avatar
    Join Date
    May 2001
    Location
    LaGrange, Georgia
    Posts
    6,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks, but that's still only giving me nameserver information. I'm looking specifically for Cname, MX, A and other DNS records that are setup AT the nameservers.

    Any other ideas?

  4. #4
    SitePoint Evangelist
    Join Date
    Aug 2007
    Posts
    566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For the mx, it's easy, as it's publicly available.
    Code:
    $>host -t mx sitepoint.com
    sitepoint.com mail is handled by 10 mail.sitepoint.com.
    On the other hand, for the C and A records, you have to know them.
    You cannot ask for a list of them, only check if a given subdomain has been declared.

    But I don't get it...
    Don't you have a mean to see what the zone definition is, on the host server ?
    Usually, the customer is able to make the changes he want via an management console.

    If you don't have such a control panel, then you are out of luck.
    As far as I know, you could have your server declared as a slave for the given zone, but this has to be configured on the master server.
    And a zone transfert can only be done once this setup has been done.

    Couldn't you simply put a new zone, with the known subdomains, mx and new dns and add a catch-all that would redirect to the main subdomain (like www) ?
    If you cannot ask the current hoster for help, then there is little room for improvements.

  5. #5
    SitePoint Wizard silver trophy
    beley's Avatar
    Join Date
    May 2001
    Location
    LaGrange, Georgia
    Posts
    6,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks, the MX records are the main thing... that helps a lot.

    The customer doesn't have any kind of management console... it's a shared hosting account. If they have a control panel, they don't know how to login.

    They're afraid the current host will just turn their site off or hold them hostage if they mention moving. They rely on email communication, so we want to make sure we get the email switched successfully before making any mention of them moving.

    Thanks!

  6. #6
    SitePoint Evangelist
    Join Date
    Aug 2007
    Posts
    566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's a shared hosting account. If they have a control panel, they don't know how to login
    Ok, it's explain a lot.
    Usually, on what I've seen both from my sysadmin and web dev experience, there is usually a A record on the www.domain.extension, and a C record to the A.
    So I think you can be pretty sure that you won't loose anything/much in the process, as you already know how to handle the mx redefinition.

  7. #7
    SitePoint Wizard spence_noodle's Avatar
    Join Date
    Jan 2004
    Location
    uk, Leeds (area)
    Posts
    1,264
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Maybe this place might help, link?

  8. #8
    SitePoint Enthusiast
    Join Date
    Dec 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spence_noodle View Post
    Maybe this place might help, link?
    Yes, that is very helpful! Shows MX and A records.
    free web hosting - 5.5 GB space, 200 GB bandwidth, No Ads!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •