PC Review


Reply
Thread Tools Rate Thread

DNS and LS command

 
 
TheBib
Guest
Posts: n/a
 
      17th Feb 2006
Hi,

I have a DNS server with 1 primary zone (ZA).
In this zone, I have create 2 domains (DA and DB) with, in each domain, 2
aliases (S1 et S2).

I have enable the zone transfers.

If I try nslookup, and LS, I have :
[myserver.mydomain.ad]
za. NS server = myserver.mydomain.ad
s1.da A 1.1.1.1
s2.da A 1.1.1.2
s1.db A 1.1.2.1
s2.db A 1.1.2.2

So, the LS command give me the full list in the zone ZA

Here is my question : how to list data in a "sub-domain" ??
I need to obtain the da.za content.

I fI try "ls da.za" :
[myserver.mydomain.ad]
*** Can't list domain ourdomain.local: Query refused
The DNS server refused to transfer the zone ourdomain.local to your
computer. If this
is incorrect, check the zone transfer security settings for ourdomain.local
on the DNS
server at IP address 192.168.64.10.

Regards,

Yannick



 
Reply With Quote
 
 
 
 
=?Utf-8?B?RWR3aW4gdk1pZXJsbw==?=
Guest
Posts: n/a
 
      18th Feb 2006
not sure if this helps

nslookup>set type=ns
nslookup>da.za
--> this will give you the Ip address of the (authorative) dns server of the
da.za domain

nslookup>lserver <IP>
--> here you fill in the IP of that (authorative) dns server of the da.za
domain queried in the last command

nslookup>set type=a
nslookup>ls

that I believe should list your (sub-)domain

hope this helps... let me know regardsless
....Edwin.

"TheBib" wrote:

> Hi,
>
> I have a DNS server with 1 primary zone (ZA).
> In this zone, I have create 2 domains (DA and DB) with, in each domain, 2
> aliases (S1 et S2).
>
> I have enable the zone transfers.
>
> If I try nslookup, and LS, I have :
> [myserver.mydomain.ad]
> za. NS server = myserver.mydomain.ad
> s1.da A 1.1.1.1
> s2.da A 1.1.1.2
> s1.db A 1.1.2.1
> s2.db A 1.1.2.2
>
> So, the LS command give me the full list in the zone ZA
>
> Here is my question : how to list data in a "sub-domain" ??
> I need to obtain the da.za content.
>
> I fI try "ls da.za" :
> [myserver.mydomain.ad]
> *** Can't list domain ourdomain.local: Query refused
> The DNS server refused to transfer the zone ourdomain.local to your
> computer. If this
> is incorrect, check the zone transfer security settings for ourdomain.local
> on the DNS
> server at IP address 192.168.64.10.
>
> Regards,
>
> Yannick
>
>
>
>

 
Reply With Quote
 
Ace Fekay [MVP]
Guest
Posts: n/a
 
      18th Feb 2006
In news:eL%(E-Mail Removed),
TheBib <(E-Mail Removed)> stated, which I commented on below:
> Hi,
>
> I have a DNS server with 1 primary zone (ZA).
> In this zone, I have create 2 domains (DA and DB) with, in each
> domain, 2 aliases (S1 et S2).
>
> I have enable the zone transfers.
>
> If I try nslookup, and LS, I have :
> [myserver.mydomain.ad]
> za. NS server = myserver.mydomain.ad
> s1.da A 1.1.1.1
> s2.da A 1.1.1.2
> s1.db A 1.1.2.1
> s2.db A 1.1.2.2
>
> So, the LS command give me the full list in the zone ZA
>
> Here is my question : how to list data in a "sub-domain" ??
> I need to obtain the da.za content.
>
> I fI try "ls da.za" :
> [myserver.mydomain.ad]
> *** Can't list domain ourdomain.local: Query refused
> The DNS server refused to transfer the zone ourdomain.local to your
> computer. If this
> is incorrect, check the zone transfer security settings for
> ourdomain.local on the DNS
> server at IP address 192.168.64.10.
>
> Regards,
>
> Yannick


Part of the issue is if ZA is a single label name zone, it may cause issues.
Keep in mind DNS is based on an hierarchal tree. A zone must have at least
two levels, such as za.com, za.local or even za.thebib.

When you invoke nslookup, it will use the DNS server listed in IP
properties. Is this the server at 192.168.64.10 that you enabled zone
transfers that comes up when you invoked nslookup? If not, repoint nslookup
to use that server by issuing this command:
> server 192.168.64.10

Now it will use that server.

Then:
ls -t da.za

But I never tested it with a single label zone name.

--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Having difficulty reading or finding responses to your post?
Instead of the website you're using, I suggest to use OEx (Outlook Express
or any other newsreader), and configure a news account, pointing to
news.microsoft.com. This is a direct link to the Microsoft Public
Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows you
to easily find, track threads, cross-post, sort by date, poster's name,
watched threads or subject.

Not sure how? It's easy:
How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Windows Server Directory Services
Microsoft Certified Trainer
Assimilation Imminent. Resistance is Futile.
Infinite Diversities in Infinite Combinations.

The only thing in life is change. Anything more is a blackhole consuming
unnecessary energy.
===========================


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute Batch Command Automatically form Command Shell with Minlogon stuie_norris@yahoo.com.au Windows XP Embedded 1 21st May 2010 12:26 PM
Data shape command text contains a syntax error at or near position 106 in the command. Bob Microsoft Access ADP SQL Server 3 14th Apr 2008 09:43 PM
Pivot Table Error Message - "Command Text not set for command obje =?Utf-8?B?SmVmZiBEaXZpYW4=?= Microsoft Excel Misc 0 7th Nov 2007 10:26 PM
autorun.inf - shell\..\command with command line parameter doesn'twork kakii Windows XP Help 1 17th May 2007 08:54 PM
A resource kit command that allows the NET USER command to get info strictly from a specific container or OU =?Utf-8?B?Ym9vNzc3?= Microsoft Windows 2000 Active Directory 3 11th May 2004 08:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:51 PM.