Sponsored Content
Top Forums Shell Programming and Scripting Retrieve all DNS zones (domains) from local server Post 302388884 by TonyFullerMalv on Thursday 21st of January 2010 06:13:28 PM
Old 01-21-2010
Some implementations of nslookup include an ls command to list all the entries in a domain

Take a look at:
nslookup MAN Page

and dare I mention this here if you have a windows machine pointed at this dNS server then look at:
Nslookup: ls

For the Unix version if it includes ls then you can script it using heretext, e.g.:
Code:
nslookup << EEOOFF
server <domain1>
ls
server <domain2>
ls
EEOOFF

I am not certain about the server <domain> bit as the method of changing which domain you are then listing, perhaps another member of unix.com can comment please?

HTH
 

9 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

DNS Free for Five Domains

We have had a great experience recently with these folks: http://www.zoneedit.com/ and highly recommend them. You can set up and manage the DNS for five free domains there, both primary and secondary. (0 Replies)
Discussion started by: Neo
0 Replies

2. Programming

retrieve IP of local machine

Hi all, I am writing a program to retrieve the IP address or machine name of the local machine using C. Is there any C function that does this? ny clue will be of gr8 help!!! thanx a lot. (1 Reply)
Discussion started by: mridula
1 Replies

3. Solaris

Setting up local DNS Server

Hi , Could some one please share some docs or steps to set up solaris box as a local DNS . Thx (1 Reply)
Discussion started by: skamal4u
1 Replies

4. Solaris

DNS resolv problem for some domains

Hi guys, I just got a new job. I'm working in an ISP and Datacenter, we have 2 DNS servers, a LINUX (primary), and a SUNOS (secondary). A few days ago we had an issue with some non-authoritative domains(not all, just some) in the SUNOS that can't be resolved. The same domain in the LINUX box is... (2 Replies)
Discussion started by: binover
2 Replies

5. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

6. Solaris

Enabling time service in local zones

Hi, Is it possible to enable the time service in local zones? E.g. erahmanz1% svcs -a | grep -i time STATE STIME FMRI disabled Sep_10 svc:/network/daytime:dgram disabled Sep_10 svc:/network/daytime:stream disabled Sep_10 svc:/network/time:dgram... (2 Replies)
Discussion started by: ERahman
2 Replies

7. IP Networking

Local DNS

I am trying to install a replacement mail server. On the old machine, nslookup example.com returns 192.168.100.5 instead of its real ip of 207.139...... On the new machine, which I have presumably set up the same way; I compared the data in the gui dnsconfig on both machines, I get an error... (0 Replies)
Discussion started by: jgt
0 Replies

8. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

9. Solaris

Solaris 11.2 x86 Local Zones for Oracle RAC database, intermittent Memory corruption of db

Hi, I was wondering if any Solaris fellow out there has dealt with running Solaris 11 x86 on Local Zones for Oracle RAC (which may or may not be relevant to issue), running on HP gen h/w. Every so often could be weeks between issues or some times days, there will be a memory corruption and db... (2 Replies)
Discussion started by: crossmypath
2 Replies
ZPRINT(1)						    BSD General Commands Manual 						 ZPRINT(1)

NAME
zprint -- show information about kernel zones SYNOPSIS
zprint [-cdhlLstw] [name] DESCRIPTION
zprint displays data about Mach zones (allocation buckets). By default, zprint will print out information about all Mach zones. If the optional name is specified, zprint will print information about each zone for which name is a substring of the zone's name. zprint interprets the following options: -c (Default) zprint prints zone info in columns. Long zone names are truncated with '$', and spaces are replaced with '.', to allow for sorting by column. Pageable and collectible zones are shown with 'P' and 'C' on the far right, respectively. Zones with pre- posterously large maximum sizes are shown with '----' in the max size and max num elts fields. -d Display deltas over time, showing any zones that have achieved a new maximum current allocation size during the interval. If the total allocation sizes are being displayed for the zones in question, it will also display the deltas if the total allocations have doubled. -h (Default) Shows headings for the columns printed with the -c option. It may be useful to override this option when sorting by column. -l (Default) Show all wired memory information after the zone information. -L Do not show all wired memory information after the zone information. -s zprint sorts the zones, showing the zone wasting the most memory first. -t For each zone, zprint calculates the total size of allocations from the zone over the life of the zone. -w For each zone, zprint calculates how much space is allocated but not currently in use, the space wasted by the zone. Any option (including default options) can be overridden by specifying the option in upper-case; for example, -C overrides the default option -c. DIAGNOSTICS
The zprint utility exits 0 on success, and >0 if an error occurs. SEE ALSO
ioclasscount(1), lsmp(1), lskq(1), Mac OS X 2 May 2016 Mac OS X
All times are GMT -4. The time now is 08:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy