question

TimAnymouse avatar image
0 Votes"
TimAnymouse asked ·

DNS setup in test environment

Hello, I hope someone can help me with setting up a dns server in my home test environment. Essentially I don’t need DC or DHCP just DNS but I cant seem to get it to work. I have a DNS Server and SQLServer I’m trying to get DNS working with before adding other servers. ![77581-image.png][1] ![77504-image.png][2] I am creating this set up in hyper v and on the DNS server I have done as follows 1. Added DNS feature via Server Manager 2. Went through configuration wizard ![77571-image.png][3] But it didnt seem to be working and on dns server nslookup gave a timeout message and could not resolve its own hostname. I then added a reverse lookup zone. ![77515-image.png][4] nslookup no longer gives the timeout message but still cannot resolve dnsserver or sqlserver host names. I also restarted the DNS server service at various points. I thought that the records would be added automatically but this did not happen so I manually added them: ![77573-image.png][5] I also added the ip of the dnsserver in the following location ![77563-image.png][6] However, after trying these steps and searching online it’s still not working as per below output from dnsserver. ![77574-image.png][7] Kind regards, Tim [1]: /answers/storage/attachments/77581-image.png [2]: /answers/storage/attachments/77504-image.png [3]: /answers/storage/attachments/77571-image.png [4]: /answers/storage/attachments/77515-image.png [5]: /answers/storage/attachments/77573-image.png [6]: /answers/storage/attachments/77563-image.png [7]: /answers/storage/attachments/77574-image.png

windows-dhcp-dns
image.png (12.8 KiB)
image.png (125.1 KiB)
image.png (11.1 KiB)
image.png (11.5 KiB)
image.png (35.6 KiB)
image.png (67.2 KiB)
image.png (7.4 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered ·

Hi ,

For DNS in workgroup environment, if we want DNS service to properly work, you need configure with a Primary DNS Suffix matching one of the zones that DNS will be authoritative for (meaning that DNS is hosting the zone).

Otherwise, you will occur the following problem:

77560-1.png

Please configure the Primary DNS Suffix as picture below:

77545-2.png

After the restart, nslookup will work fine on DNS server:

77625-3.png

77632-image.png

For more details ,you can refer to the following article. This will help you understand better:

https://blogs.msmvps.com/acefekay/tag/dns-in-a-workgroup/

Best Regards,

Candy


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



1.png (46.2 KiB)
2.png (21.9 KiB)
3.png (33.6 KiB)
image.png (65.3 KiB)
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TimAnymouse avatar image
0 Votes"
TimAnymouse answered ·

Thanks Kitty Cat Candy. Looks like I have some reading to do but it appears you've give me the last piece I was missing.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You are welcome!

Please try to accept the answer which help you. It will encourage the person who help you.

Appreciate your understanding. :)

0 Votes 0 ·