Results 1 to 16 of 16
  1. #1
    Join Date
    Aug 2008
    Posts
    505

    Arrow how to search dns entry

    Hi,

    there are 200 domains hosted on our linux (Centos) server & we would like to know that which domain or domains have below dns entry
    ns1.example.com
    ns2.example.com

    we can check this thing manually by edit dns function , but it takes to much time to check

  2. #2
    try domaintools.com

  3. #3
    Join Date
    Aug 2008
    Posts
    505

    Arrow

    here in india big Internet problem e.g slow browsing in slow internet so its not possible

    this is what that i don't want

    how can search 200 domain in domaintools.com

    i just wanted to know any kind of script which solve my problem

  4. #4

  5. #5
    Hello, I would suggest you as following commands.

    cd /
    cd var/named/
    ll | grep abc.com.db

    Just use your domain name instead of abc.com

    Regards,
    Windows VPS | Linux Hybrid Server | 99.9% Uptime
    http://www.odishahosting.com ( USA DC)
    http://www.odishahosting.in ( INDIA DC)

  6. #6
    Join Date
    Jun 2003
    Location
    World Wide Web
    Posts
    581
    Run the following commands and this will help you

    cd /var/named


    grep -il ns1.example.com *.db

    grep -il ns2.example.com *.db
    SupportExpertz.com - the name says it all!
    Managed Cloud Servers
    Server Management and Monitoring
    24x7 outsourced customer support

  7. #7
    Join Date
    Aug 2008
    Posts
    505

    Arrow

    Quote Originally Posted by logicsupport View Post
    Run the following commands and this will help you

    cd /var/named


    grep -il ns1.example.com *.db

    grep -il ns2.example.com *.db
    yes it is nice command it solved my problem but one more question

    i have found that some domains has test.example.com in SOA email option

    check below for further clarification

    SOA
    server: ns1.domain.com
    email: test.example.com
    serial: 2009062904
    refresh: 86400
    retry: 7200
    expire: 3600000
    minimum ttl: 86400

    now i want to remove test.example.com entries which domains has & add some other e.g my.example.com

  8. #8
    Join Date
    Apr 2009
    Posts
    50
    now i want to remove test.example.com entries which domains has & add some other e.g my.example.com
    Nilesh, run this command

    replace test.example.com my.example.com -- file.com.db

    This will replace test.example.com with my.example.com in file.com.db

  9. #9
    Join Date
    Aug 2008
    Posts
    505

    Arrow

    is this for one domain only ? if so then it is good but it is much better if you use WHM

    we want to change same entry for multiple domains
    Last edited by crazyaboutlinux; 08-07-2009 at 06:32 AM.

  10. #10
    Join Date
    Apr 2009
    Posts
    50
    Quote Originally Posted by nileshparmar1 View Post
    is this for one domain only ? if so then it is good but it is much better if you use WHM

    we want to change same entry for multiple domains
    I believe this has been answered on another forum.

  11. #11
    Join Date
    Aug 2008
    Posts
    505

    Arrow

    Quote Originally Posted by JawadA View Post
    I believe this has been answered on another forum.
    yes this has been answered

  12. #12
    You can also check the DNS entry for the particular domains from the dnstools.com.
    Support Facility | 24/7 web hosting technical support services
    Technical support | Server management | Data migration

    Technical Articles

  13. #13
    Join Date
    Aug 2008
    Posts
    505

    Arrow

    Quote Originally Posted by inspiron View Post
    You can also check the DNS entry for the particular domains from the dnstools.com.
    that i know already & there is to many websites available to check dns not only dnstools.com

    ANd If you read 1st two thread carefully you come to know that this already been discussed .

    but anyways thanks for your reply.

  14. #14
    Join Date
    Aug 2008
    Posts
    505

    Arrow

    Quote Originally Posted by JawadA View Post
    Nilesh, run this command

    replace test.example.com my.example.com -- file.com.db

    This will replace test.example.com with my.example.com in file.com.db

    for testing purpose i used this command replace test.example.com my.example.com -- file.com.db but its not success for me

    after run above i checked dns entry from dns function for the domain & i found that my.example.co. note : its not completed " m " is missing after run above command

    Then i have tried to add manually from WHM edit dns function though getting same
    __________________
    Last edited by crazyaboutlinux; 08-07-2009 at 07:40 AM.

  15. #15
    Join Date
    Apr 2009
    Posts
    50
    Quote Originally Posted by nileshparmar1 View Post
    after run above i checked dns entry from dns function for the domain & i found that my.example.co. note : its not completed " m " is missing after run above command
    Run command 'history' without commas, see the replace command you ran, you must have missed the 'm' in your initial command which is why it was not properly replaced.

  16. #16
    Join Date
    Aug 2008
    Posts
    505

    Arrow

    Quote Originally Posted by JawadA View Post
    Run command 'history' without commas, see the replace command you ran, you must have missed the 'm' in your initial command which is why it was not properly replaced.
    i have ran a history command & i didn't mistake anything

    i really careful when i use SSH as a root because just a mistake can damage our server so

Similar Threads

  1. Google's entry-level search appliance
    By [email protected] in forum Colocation and Data Centers
    Replies: 8
    Last Post: 01-05-2008, 10:10 PM
  2. Replies: 6
    Last Post: 12-14-2006, 02:04 PM
  3. Replies: 4
    Last Post: 03-17-2006, 12:28 AM
  4. pass on form entry to site search script
    By aqi32 in forum Web Design and Content
    Replies: 1
    Last Post: 03-01-2005, 02:37 AM
  5. Replies: 0
    Last Post: 02-08-2005, 04:06 AM

Posting Permissions

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