How To Add Static Dns Entry Windows 10
Host record or A-tape is a type of DNS record. Host A tape serves the bones function of DNS server which is proper name-to-IP address mapping. It is the most common DNS record blazon and exists in the forward lookup zone as a static or dynamic tape. Usually, an administrator manages the A record in enterprise network environment. This article volition explicate the step-by-step for administrator to Add together Host A Tape in Windows DNS Server using both DNS Manager and PowerShell.
How to Add Host A Record in Windows DNS Server
In this scenario, AS-DCO001 is the domain controller and DNS server for domain mustbegeek.com. Here, I will add together Host (A) record for server As-MBX001.mustbegeek.com and point to IP address 192.168.0.10. At that place are two ways to add Host (A) record in Windows DNS Server which are DNS Server Director and PowerShell .
Using DNS Managing director
The start manner to add together Host A tape in Windows DNS Server is using DNS manager. To create new A record, browse to the zone name where y'all will create the record. In this case, the zone name is mustbegeek.com nether Frontwards Lookup Zones.
Right click on the zone name and select "New Host (A or AAAA)…"
A new popup window as shown below will appear.
In this popup window you should enter several details as follows:
- Enter the name of the host machine in the Proper name field. In this case the host machine name is "AS-MBX001". Notice that the Fully Qualified Domain Proper name (FQDN) field is updated automatically as you fill in the proper noun.
- Enter the full IP address of the host machine in the IP accost field, in this case the IP accost is "192.168.0.ten"
- (Optional) You tin can choose to tick the option to Create associated pointer (PTR) record, if you want the PTR record for this A record to exist created automatically. Note that when you do this, the valid zone for the PTR record should be existing under Contrary Lookup Zones.
- (Optional) Once more, you can choose to tick the choice to Allow whatever authenticated user to update the DNS record with the aforementioned owner name, if you want to permit this record to be updated by the host motorcar when it changes the IP accost. Note that if you don't tick this option, you're A-record will be created equally static. Simply, if you tick this, you're A record volition exist created every bit dynamic record.
- (Optional) You can change the TTL value or exit it to the default configuration. TTL value is the time given to the DNS client of how long they should keep this A-tape on its cache. In this example we're setting information technology to be viii hours.
Finally, click the button Add Host to stop calculation the A-record.
Using PowerShell
You can also add Host A-record in Windows DNS Server using PowerShell. The PowerShell command template to add Host A-record is:
Add-DnsServerResourceRecordA -Name "HOST_NAME" -ZoneName "ZONE_NAME" -IPv4Address "IP_ADDRESS" [-AllowUpdateAny] [-CreatePtr] [-TimeToLive TTL_VALUE]
You need to modify the command above according to your needs.
Mandatory input
- HOST_NAME = Replace this with the hostname without FQDN suffix. In this example it would exist "AS-MBX001"
- ZONE_NAME = Replace with the zone proper name where you will create the A-tape. In this example is "mustbegeek.com"
- IP_ADDRESS = Replace with the IP address of the host. In this example information technology is "192.168.0.10"
Optional keyword
- [-AllowUpdateAny] = This optional keyword serves the aforementioned function as "Allow whatever authenticated user to update all DNS tape…". You can cull to include this keyword if you want to brand dynamic A-record.
- [-CreatePtr] = Serves the aforementioned function as "Create associated arrow (PTR) record". Include this keyword only if you want the PTR tape for this A-record to exist created.
- [-TimeToLive TTL_VALUE] = Optional keyword that serves the aforementioned function equally the TTL field. Replace the TTL_VALUE with TTL value that you want in HH:MM:SS format. Skip this keyword if you intend only to use the default TTL value.
Now for this example, the PowerShell command that reflects the same configuration as in the previous example using DNS Managing director volition looks like this:
Remember to run the command by using an elevated PowerShell window.
Working with A record in Windows DNS Server
When y'all add Host A tape in Windows DNS server, you need to be aware that multiple A records with duplicate hostname in the same zone tin be created. For example, you lot already have A-record for "Every bit-MBX001" in zone mustbegeek.com pointing to 192.168.0.10. But you lot want to build a mirror server with the identical configuration but different IP accost of 192.168.0.xi, and then yous tin can create new A record for "AS-MBX001" again merely this one points to 192.168.0.11.
This is possible to practice, particularly in case to achieve server redundancy or load-balance. Yet, this may not be the all-time practice as when DNS server is performing lookup for tape As-MBX001, it volition randomly select one of the records and at that place is no style to control the DNS lookup decision.
On the opposite, there will exist no issue if you add multiple A-records in Windows DNS server with dissimilar hostname pointing to the same IP address. For example, yous can add together another A record for "mail.mustbegeek.com" pointing to 192.168.0.10, even though this IP address has been pointed by "AS-MBX001". Yet, for this kind of scenario y'all might want to consider using CNAME instead.
And that's all you need to know when you add together Host A record in Windows DNS server.
The post-obit ii tabs change content below.
- Bio
- Latest Posts
I am Information technology practitioner in real life with specialization in network and server infrastructure. I have years of feel in design, analysis, functioning, and optimization of infrastructure solutions for enterprise-scaled network. You can send me a message on LinkedIn or email to arranda.saputra@outlook.com for farther inquiry regarding stuffs that I wrote or opportunity to interact in a project.
Source: https://www.mustbegeek.com/add-host-a-record-in-windows-dns-server/
Posted by: kistlercaude1987.blogspot.com
0 Response to "How To Add Static Dns Entry Windows 10"
Post a Comment