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

000

Well-Known Member
Jun 3, 2008
446
20
68
hello,
which command can list DNS into server?, but: from putty.

we not want get
Code:
[[email protected] ~]# cat /etc/resolv.conf
; Created by cloud-init on instance boot automatically, do not edit.
;
; generated by /usr/sbin/dhclient-script
search openstacklocal 3cow
nameserver 8.8.8.8
nameserver 8.8.4.4
[[email protected] ~]#
just get:

Nameserver 1 = ns1.snel.com
Nameserver 2 = ns2.snel.com
Nameserver 3 = ns3.snel.com
Nameserver 4 = reseller1.snel.com
Nameserver 5 = reseller2.snel.com

etc...
 

000

Well-Known Member
Jun 3, 2008
446
20
68
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

Code:
[[email protected] 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...
 

000

Well-Known Member
Jun 3, 2008
446
20
68
thanks,
some option using "GREP" for take only the DNS from this large file ?
 

000

Well-Known Member
Jun 3, 2008
446
20
68
Hello again! Which DNS entries were you looking for out of this file?
thanks

into:

Code:
Home »Server Configuration »Basic WebHost Manager
in bottom you will find:

Nameservers:

1635464374241.png


how using PUTTY we can get the same list of DNS ?

( my DNS and DNS from reseller1, reseller2, etc... )