Skip to main content

from SHELL, how to list all DNS createds in server? (not just 8.8.8.8)

Comments

7 comments

  • cPanelAnthony
    Hello! Are you looking to get a list of the default nameservers in WHM? You would find that in the following file. /etc/wwwacct.conf [root@10-2-49-239 config]# grep 'NS ' /etc/wwwacct.conf NS ns1.cprapid.com
    0
  • 000
    Hello! Are you looking to get a list of the default nameservers in WHM? You would find that in the following file. /etc/wwwacct.conf [root@10-2-49-239 config]# grep 'NS ' /etc/wwwacct.conf NS ns1.cprapid.com

    thanks, work fine. Some "version 2" for get ALL name servers including the NS of my resellers...
    0
  • cPanelAnthony
    There wouldn't be a separate file that contains reseller nameservers. All default nameservers will be contained within the /etc/wwwact.conf file. I hope this helps!
    0
  • 000
    thanks, some option using "GREP" for take only the DNS from this large file ?
    0
  • cPanelAnthony
    Hello again! Which DNS entries were you looking for out of this file? DNS records for your domains are actually stored in .db files in the following directory. /var/named
    0
  • 000
    Hello again! Which DNS entries were you looking for out of this file?

    thanks into: Home "Server Configuration "Basic WebHost Manager
    in bottom you will find: Nameservers: how using PUTTY we can get the same list of DNS ? ( my DNS and DNS from reseller1, reseller2, etc... )
    0
  • cPRex Jurassic Moderator
    Those specific values you mention are stored in /etc/wwwacct.conf. You can find more details on that here:
    0

Please sign in to leave a comment.