Windows server 2008 Core – How to set static IP address via command line

Posted by Mark | Posted in Command line, Networking, Windows 2008 | Posted on 30-07-2009

0

This topic will show how to set static IP 192.168.0.10 with mask 255.255.255.0 to your Windows server 2008 Core interface named “Local Area Connection” .

Also we will set DNS server IP 192.168.0.11.

To set static IP address and mask type:

netsh interface ipv4 set address name=”Local Area Connection” source=static address=192.168.0.10 mask 255.255.255.0

To set DNS server IP type:

netsh interface ipv4 add dnsserver name=”Local Area Connection” address=192.168.0.11

Windows server 2003 and Windows XP – How to list DNS servers for your domain via command line

Posted by aidas | Posted in Active directory, Command line, Windows 2003, Windows XP | Posted on 15-05-2009

0

Quick tip for you how to find all DNS servers for your domain. Lets say that we want to list all DNS servers for domain named testdomain.lan . To do it open command line on your Windows server 2003 or Windows XP machine and type:

nslookup testdomain.lan

Windows server 2003 – How to export DNS zone resource records list to file

Posted by aidas | Posted in Command line, Tools, Windows 2003 | Posted on 07-05-2009

0

In this post you`ll see how to export DNS zone resource records list to a file using command line tool dnscmd. Lets say want to export test.testdomain.com to file named test.testdomain.com.dns. To do it open command line on your Windows server 2003 and type:

dnscmd testdomain.com /zoneexport test.testdomain.com test.testdomain.com.dns

Note that dnscmd is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .

Windows server 2003 – How to and why you create and add SPF record to your DNS server

Posted by aidas | Posted in Security, Windows 2003 | Posted on 28-04-2009

0

Some time ago i got non delivery record (NDR) mail message stating that my mail  could not be delivered to recipient X which resides in domain Y. You`ll say it is daily stuff… but the main problem is that i have never send this message by myself. Someone used my mail address to spam others. This is big threat to me and my company because it affects people`s confidence in me and my company`s reliability. What can we do about it you`ll ask ?

We can use help of Sender Policy Framework (SPF) which stands for open standart specifying a technical method to prevent sender address forgery. SPF allows the owner of a domain to specify their mail sending policy, for example which mail servers they use to send mail from their domain. To make it work we need that both sides were configured in right way. Domain owner must publish mail sending servers in SPF record and place this record in DNS server within his DNS zone.  Mail receiving server must enforce these policies vis SPF record check function.

Lets leave theory alone and try to generate SPF record for your domain.

For that first of all follow this wizard which will guide you through SPF record creation.

After you have SPF record generated and if your Windows server 2003 hosts yourdomain.com zone open DNS management snap in, navigate to yourdomain.com zone and choose to add “Other new Records…”. Select Text (TXT) record type and press “Create Record…” button. Copy data you generated earlier using wizard and paste it to “Text” textbox.  Click OK button and you are done.

Note, if you dont control your domain zone then contact your ISP and ask him to add SPF record for you.