delegated secure DDNS update in AD - dns

For automation purposes, a script running on a Windows server needs to be able to securely update a record in AD-integrated DNS when a certain condition is triggered.
This pertains an A record for an application, which is not the hostname of the Windows server on which the script runs.
The DNS entry has an ACL in the DNS zone to allow write by the service account running the script, and the GSS-TSIG DDNS update can easily be triggered from Linux/UNIX using a DNS client (eg. 'addns') that supports secure DDNS updates for arbitrary records in the DNS zone.
On Windows, I have had no luck so far finding any DNS client that supports GSS-TSIG (secure DDNS updates) for arbitrary records in DNS. All examples point to 'Register-DNSClient' or 'ipconfig /registerdns', which appear limited to registering the record for the local machine's hostname in the DNS zone.

Related

Hostname not resolving to IP addresses for Linux computers in an AD Domain

I am joining Linux and Windows instances to an AD domain (). The machines are joining fine to the domain and I can use ssh/RDP using the AD credentials to login to the machines post domain join.
I can also get all the computer objects (host names) by running Get-ADComputer -Filter * on a windows server and providing the domain credentials. The issue is that, the host names for Linux based computers are not resolving to an IP address. Whereas all Windows hosts are resolving fine.
nslookup <windows-host> is returning host's FQDN and the IP address.
nslookup <linux-host> is returning Non-existent domain.
P.S: All these resources (windows and Linux hosts) are in the same network, using same DHCP/DNS server and can communicate to each other with no issues. Also I can resolve and connect to the AD domain from all these hosts
Any idea why this could be happening and how to resolve this ?
My use case is to get the IPs of all the computer objects in my AD domain.
Normally when using DHCP Windows will attempt to register its own A and possibly PTR records in the configured DNS, not sure about Linux. You may configure your DHCP server to update DNS for the clients (instead of leaving it to the clients themselves), i.e.:
To configure a DHCP server to register and to update client information with its configured DNS servers, follow these steps:
Open the DHCP properties for the server
Click DNS, click Properties, click to select the Enable DNS dynamic updates according to the settings below check box, and then click Always dynamically update DNS A and PTR records.
Source: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-dns-dynamic-updates-windows-server-2003

hMailServer with Domain - WAMP

I came into a struggle the last few days.
Using WAMP Server and following this Tutorial I set up a local email environment, and I wanted to make the emails reach accounts outside of the local host.
I heard you need to make some changes in the DNS zone, so here is my DNS Zone at Freenom.
Is is possible to make emails sent from a computer using hMailServer reach the outside world through a domain?
Thank you for your time.
It is possible but it depends on your Scenario.
If you are behind a Router or a NAT or a Dynamic IP-Address it's almost not possible
to run a real World sending SMTP-Server and you shouldn't
If you have a Hosting plan (your own Windows V-Server or Root server) with Remote Desktop
access and a static ip address it's and access to the DNS-Configuration of your Internet Domain, it is possible and recommended.
1) First you need to setup a DNS A Record which points to your static IP in DNS
2) You need to create DNS MX Record which points to your A Record
Now you can add a new hMailServer Domain and add accounts and sent Emails
out. But you should setup a DNS A Record for IMAP or POP3 as well so you can
Receive Emails and not only sending.

Azure VM fails to register in the DNS server external to Azure

We are trying to register the Azure VM to our own DNS Server but not able to do so.
We have already setup the VPC, Virtual Network and Gateway to connect to our DNS server.
we have also specified our DNS server within the Virtual network.
From what I understand, you're looking to register your VMs internal IPs in your DNS server. Is that correct?
If so, Windows clients do this automatically when domain joined and will send an unsecured Dynamic DNS update when not domain joined but you need to create a DNS zone for the records and allow unsecured updates, which is not the default. Linux clients need a script added to the DHCP client to send the dynamic DNS updates. I'm in the process of creating a page on Azure.com for this and can share the commands in the meantime if you're using that setup.
Gareth
(Azure DNS)

how connect my own server to a domain?

I have a dedicated server in my office and it has a static IP on internet, now i want to connect this server to a domain and setup mail server on it.
my only problem is how to connect IP and domain?
I have some questions about this but can't find answer by searching, please help me:
If i had to create my own dns server to handle it? if so how to run dns server
to create mail server that reliable by gmail and other mail-servers i had to provide RDNS to my server, how?
Thanks in advanced
Assuming that you have registered a domain already, you add an A record, which specifies hostname and ip address of your server. You don't need to install your own nameservers, if you use services of a DNS hoster. Many registrars, where you can register a domain, also offer such DNS hosting services. However, regardless of who runs the nameservers which are authoritative for your domain, you will still need to add that A record to your zone on the master nameserver. Depending on used service, you may then have to update SOA serial, and issue an update notification to slave nameservers, so they know that they must ask master nameserver for the updated zone - but most DNS hosters do this step automatically.
For reverse DNS, you add a PTR record to reverse zone. The netblock owner is in control of the reverse zone.
The nameservers authoritative for reverse zone are generally different servers than those you put hostname and ip address of your server on, and you will have to use facilities or cooperation offered by netblock owner.

Block DNS record creation in 2008 AD environment

We build a set of virtual appliances used throughout the company. The networking on the VM is set to NAT to prevent external DNS records from being created, unfortunately at least once a month someone switches it to bridged so other people can connect.
The problem with this is they all have the same hostname, as soon as the external DNS record is created everyone is routed to this new address causing issues until we track down the culprit and change it back to NAT or change the hostname.
Is there a method in a 2008 R2 AD environment to blacklist a hostname and prevent a DNS record from being created? DNS is configured so a record can be created by anyone with a network device which makes it messy. Adding an A record pointing to 127.0.0.1 won't work as people work with the VM from outside it with a client.
This is a multi-domain environment and the root domain has DNS restricted, if there's a way to force the VM to request a DNS record in that space that could work.
Edit: To clarify, the DNS record is created via DHCP
Create static host records for those required, then set the permissions to them to deny writes. That should prevent them from being updated.

Resources