WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DNS suffix for this connection:

 
   Home -> Windows Other -> DNS RSS
Next:  Authentication problem in parent child domain  
Author Message
altaf76

External


Since: Apr 16, 2007
Posts: 3



(Msg. 1) Posted: Mon Apr 16, 2007 4:15 am
Post subject: DNS suffix for this connection:
Archived from groups: microsoft>public>win2000>dns (more info?)

Hi

Is there a way to enter the name of "DNS suffix for this connection:"
using a script and also enable the checkbox for "Register this
connection's addresses in DNS" and "Use this connection's DNS suffix
in DNS registration"

I will be rolling this script via a tool "PSEXEC" which have the ip
address of remote PC and associated creditionals.

Thanks
Back to top
Login to vote
Herb Martin

External


Since: Dec 31, 2006
Posts: 454



(Msg. 2) Posted: Mon Apr 16, 2007 1:15 pm
Post subject: Re: DNS suffix for this connection: [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<altaf76.RemoveThis@googlemail.com> wrote in message
news:1176722107.764896.216440@e65g2000hsc.googlegroups.com...
> Hi
>
> Is there a way to enter the name of "DNS suffix for this connection:"
> using a script and also enable the checkbox for "Register this
> connection's addresses in DNS" and "Use this connection's DNS suffix
> in DNS registration"
>
> I will be rolling this script via a tool "PSEXEC" which have the ip
> address of remote PC and associated creditionals.

(Some of) This can be done with NetSH -- start by dumping the
interface IP context and take a look at what is available.


--
Herb Martin, MCSE, MVP
http://www.LearnQuick.Com
(phone on web site)
Back to top
Login to vote
Ace Fekay [MVP]

External


Since: Mar 29, 2006
Posts: 554



(Msg. 3) Posted: Mon Apr 16, 2007 2:10 pm
Post subject: Re: DNS suffix for this connection: [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In news:1176722107.764896.216440@e65g2000hsc.googlegroups.com,
altaf76 RemoveThis @googlemail.com <altaf76 RemoveThis @googlemail.com> typed:
> Hi
>
> Is there a way to enter the name of "DNS suffix for this connection:"
> using a script and also enable the checkbox for "Register this
> connection's addresses in DNS" and "Use this connection's DNS suffix
> in DNS registration"
>
> I will be rolling this script via a tool "PSEXEC" which have the ip
> address of remote PC and associated creditionals.
>
> Thanks

If the clients are AD members, you could set the Primary DNS Suffix, which
essentially will use that name as the machine's connection suffix, by using
a GPO. You'll find that in:


Computer Configuration

-Administrative Templates

-Network

-DNS Client

-DNS Suffix search list

--
Ace
Innovative IT Concepts, Inc (IITCI)
Willow Grove, PA

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

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Directory Services
Microsoft Certified Trainer

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.
It's easy:

How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164

Infinite Diversities in Infinite Combinations
Assimilation Imminent. Resistance is Futile
"Very funny Scotty. Now, beam down my clothes."

The only constant in life is change...
Back to top
Login to vote
altaf76

External


Since: Apr 16, 2007
Posts: 3



(Msg. 4) Posted: Tue Apr 17, 2007 1:28 am
Post subject: Re: DNS suffix for this connection: [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Apr 16, 7:10 pm, "Ace Fekay [MVP]" <PleaseAs....TakeThisOut@SomeDomain.com>
wrote:
> Innews:1176722107.764896.216440@e65g2000hsc.googlegroups.com,
> alta....TakeThisOut@googlemail.com <alta....TakeThisOut@googlemail.com> typed:
>
> > Hi
>
> > Is there a way to enter the name of "DNSsuffixfor thisconnection:"
> > using a script and also enable the checkbox for "Register this
> >connection'saddresses inDNS" and "Use thisconnection'sDNSsuffix
> > inDNSregistration"
>
> > I will be rolling this script via a tool "PSEXEC" which have the ip
> > address of remote PC and associated creditionals.
>
> > Thanks
>
> If the clients are AD members, you could set the PrimaryDNSSuffix, which
> essentially will use that name as the machine'sconnectionsuffix, by using
> a GPO. You'll find that in:
>
> Computer Configuration
>
> -Administrative Templates
>
> -Network
>
> -DNSClient
>
> -DNSSuffixsearch list
>
> --
> Ace
> Innovative IT Concepts, Inc (IITCI)
> Willow Grove, PA
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
> Microsoft MVP - Directory Services
> Microsoft Certified Trainer
>
> 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.
> It's easy:
>
> How to Configure OEx for Internet Newshttp://support.microsoft.com/?id=171164
>
> Infinite Diversities in Infinite Combinations
> Assimilation Imminent. Resistance is Futile
> "Very funny Scotty. Now, beam down my clothes."
>
> The only constant in life is change...

Sorry, i forgot to mention that there is no AD infrastructure, all the
clients log on to NDS for file and print. So far I have been able to
make IP Setting all set to DHCP by issuing the NETSH command via
PSEXEC. This is a success, I just need to enter the Name of "DNS
suffix for this connection:"
using a script / command and also enable the checkbox for "Register
this
connection's addresses in DNS" and "Use this connection's DNS suffix
in DNS registration"


> in DNS registration"
Back to top
Login to vote
Ace Fekay [MVP]

External


Since: Mar 29, 2006
Posts: 554



(Msg. 5) Posted: Tue Apr 17, 2007 5:11 pm
Post subject: Re: DNS suffix for this connection: [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In news:1176798529.134664.82960@b75g2000hsg.googlegroups.com,
altaf76 DeleteThis @googlemail.com <altaf76 DeleteThis @googlemail.com> typed:
> Sorry, i forgot to mention that there is no AD infrastructure, all the
> clients log on to NDS for file and print. So far I have been able to
> make IP Setting all set to DHCP by issuing the NETSH command via
> PSEXEC. This is a success, I just need to enter the Name of "DNS
> suffix for this connection:"
> using a script / command and also enable the checkbox for "Register
> this
> connection's addresses in DNS" and "Use this connection's DNS suffix
> in DNS registration"

In that case, try what Herb suggested. Othewise you can create a batch file
using a .reg file that will run on each client to populate the entries. You
can look at:

The key is (or should be) located in
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\

You can do this either through vbscript, reg import or simply uisng reg.exe
in a batch file.

Or try a batch or VBS file such as the onse below (written by and originally
posted by Deji):

Originally posting:
From: Deji Akomolafe akomolafe.com>
Newsgroups: microsoft.public.win2000.dns
Sent: Thursday, December 18, 2003 12:35 AM
Subject: Re: Host name resolution



Batch file:

REM //////////////////////////////////////////////////////////////////
@echo off
cscript %logonserver%\netlogon\addDNS-Suffix.vbs

:END
REM //////////////////////////////////////////////////////////////////

===============================================

Or a VBS file:

'//////////////////////////////////////////////////////////////////
On Error Resume Next

SET WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\SearchList",
"FirstDomain.com,child.firstdomain.com,seconddomain.net,firstdomain.blah,oth
erdomain.local,etcdomain.etc", "REG_SZ"
SET WSHShell = Nothing
'//////////////////////////////////////////////////////////////////





Ace
Back to top
Login to vote
altaf76

External


Since: Apr 16, 2007
Posts: 3



(Msg. 6) Posted: Wed Apr 18, 2007 3:09 am
Post subject: Re: DNS suffix for this connection: [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hi,

thanks for your help, not a VB person but i hope the lines of code
below explains what i am trying to achieve.

Unfortunatly the script below fails to execute, can help with this.
The whole path to editing this manually on registry is fine, but the
"Local Area Connection 2" appears as a set of numbers, on the script i
have typed the full name as it appears.

Can you help with the syntax





On Error Resume Next


SET WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
\Local Area Connection 2\domain=data:mycorp.com"
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
\Local Area Connection 2\RegisterAdapterName=data:1"
"HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
\Local Area Connection 2\RegistrationEnabled=data:1"
SET WSHShell = Nothing
Back to top
Login to vote
Ace Fekay [MVP]

External


Since: Mar 29, 2006
Posts: 554



(Msg. 7) Posted: Wed Apr 18, 2007 11:49 pm
Post subject: Re: DNS suffix for this connection: [Login to view extended thread Info.]
Archived from groups: microsoft>public>scripting>vbscript, others (more info?)

In news:1176890978.137780.180220@y80g2000hsf.googlegroups.com,
altaf76.RemoveThis@googlemail.com <altaf76.RemoveThis@googlemail.com> typed:
> hi,
>
> thanks for your help, not a VB person but i hope the lines of code
> below explains what i am trying to achieve.
>
> Unfortunatly the script below fails to execute, can help with this.
> The whole path to editing this manually on registry is fine, but the
> "Local Area Connection 2" appears as a set of numbers, on the script i
> have typed the full name as it appears.
>
> Can you help with the syntax
>
>
>
>
>
> On Error Resume Next
>
>
> SET WSHShell = CreateObject("WScript.Shell")
> WSHShell.RegWrite
> "HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
> \Local Area Connection 2\domain=data:mycorp.com"
> "HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
> \Local Area Connection 2\RegisterAdapterName=data:1"
> "HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\interfaces
> \Local Area Connection 2\RegistrationEnabled=data:1"
> SET WSHShell = Nothing

Sorry, not a VB scripter myself either. I usually ask for help with
scripting, such as the microsoft.public.scripting.vbscript newsgroup.

But from what I see, is that what the connection name is on every machine,
"Local Area Connection 2"? The names "Local Area..." show up in
HKLM\System\CCS\Control\Network\Some-GUID-Identifier for the network ID so I
can't see how your script works, unless I am not understanding if it works
like that or not. Maybe the folks in the script newsgroup can better assist.

Check this link out for more info.

Automating TCP/IP Networking on Clients - Part 5: Scripting DNS on Clients:
http://www.microsoft.com/technet/scriptcenter/topics/networking/05_atnc_dns.mspx

I would still think netsh, as Herb originally suggested in his post, is your
better bet for network configuration scripts.

I am also cross-posting this to the VBScript newsgroup to see if those folks
can better assist. When you reply to group, it will auto reply to both
groups as long as whoever replies doesn't delete the groups in the list.

Ace

Some of the previous posts in this thread:
------------------------------------------------

On Apr 16, 7:10 pm, "Ace Fekay [MVP]" <PleaseAs....RemoveThis@SomeDomain.com>
wrote:
> Innews:1176722107.764896.216440@e65g2000hsc.googlegroups.com,
> alta....RemoveThis@googlemail.com <alta....RemoveThis@googlemail.com> typed:
>
>> Hi
>
>> Is there a way to enter the name of "DNSsuffixfor thisconnection:"
>> using a script and also enable the checkbox for "Register this
>> connection'saddresses inDNS" and "Use thisconnection'sDNSsuffix
>> inDNSregistration"
>
>> I will be rolling this script via a tool "PSEXEC" which have the ip
>> address of remote PC and associated creditionals.
>
>> Thanks
>
> If the clients are AD members, you could set the PrimaryDNSSuffix, which
> essentially will use that name as the machine'sconnectionsuffix, by using
> a GPO. You'll find that in:
>
> Computer Configuration
>
> -Administrative Templates
>
> -Network
>
> -DNSClient
>
> -DNSSuffixsearch list
>
> --
> Ace
> Innovative IT Concepts, Inc (IITCI)
> Willow Grove, PA
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
> Microsoft MVP - Directory Services
> Microsoft Certified Trainer
>
> 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.
> It's easy:
>
> How to Configure OEx for Internet
> Newshttp://support.microsoft.com/?id=171164
>
> Infinite Diversities in Infinite Combinations
> Assimilation Imminent. Resistance is Futile
> "Very funny Scotty. Now, beam down my clothes."
>
> The only constant in life is change...

Sorry, i forgot to mention that there is no AD infrastructure, all the
clients log on to NDS for file and print. So far I have been able to
make IP Setting all set to DHCP by issuing the NETSH command via
PSEXEC. This is a success, I just need to enter the Name of "DNS
suffix for this connection:"
using a script / command and also enable the checkbox for "Register
this
connection's addresses in DNS" and "Use this connection's DNS suffix
in DNS registration"

> in DNS registration"
Back to top
Login to vote
winforall




Joined: Jan 27, 2009
Posts: 1



(Msg. 8) Posted: Tue Jan 27, 2009 3:32 am
Post subject: Re: DNS suffix for this connection: [Login to view extended thread Info.]

Hi,

the below explains adding connection-specific dns suffix to a network connection. This may help you. it also provides a link for downloading the script. check it out

http://www.dns-info.blogspot.com/2009/01/add-connection-specific-dns-suffix.html
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> DNS All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support