from SHELL, how to list all DNS createds in server? (not just 8.8.8.8)
hello,
which command can list DNS into server?, but: from putty.
we not want get
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...
[root@pepsi ~]# 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
[root@pepsi ~]#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...
-
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.com0 -
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 -
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 -
thanks, some option using "GREP" for take only the DNS from this large file ? 0 -
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
Please sign in to leave a comment.
Comments
7 comments