W
W
WSGlebKavash2022-03-18 21:41:58
Domain Name System
WSGlebKavash, 2022-03-18 21:41:58

DNS bind9 not working with localhost?

Raised a domain controller on Ubuntu and replicated the database from DC Windows Server. Everything seemed to work, but bind9 does not want to define localhost in any way.

host -t A localhost 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:

Host localhost not found: 2(SERVFAIL)
host -t PTR 127.0.0.1 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:

Host 1.0.0.127.in-addr.arpa not found: 2(SERVFAIL)
As a result, the database was not fully replicated.
samba-tool drs showrepl
Default-First-Site-Name\NIX-ADSERVER
DSA Options: 0x00000001
DSA object GUID: 3b618967-4869-46c7-95b4-112cef3a60d1
DSA invocationId: c11e2ba5-6fa9-4f03-965b-229c784624db

==== INBOUND NEIGHBORS ====

DC=ForestDnsZones,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:26:51 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:26:51 2022 MSK

DC=DomainDnsZones,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:26:51 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:26:51 2022 MSK

CN=Schema,CN=Configuration,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:26:51 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:26:51 2022 MSK

CN=Configuration,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:26:51 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:26:51 2022 MSK

DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:29:18 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:29:18 2022 MSK

==== OUTBOUND NEIGHBORS ====

DC=ForestDnsZones,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:16:07 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:16:07 2022 MSK

DC=DomainDnsZones,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:16:07 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:16:07 2022 MSK

CN=Schema,CN=Configuration,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:16:07 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:16:07 2022 MSK

CN=Configuration,DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:16:07 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:16:07 2022 MSK

DC=trainzcity,DC=myftp,DC=org
Default-First-Site-Name\WIN-ADSERVER via RPC
DSA object GUID: 3b7ddb15-7643-4cc0-a481-ad116632adb4
Last attempt @ Fri Mar 18 21:16:07 2022 MSK was successful
0 consecutive failure(s).
Last success @ Fri Mar 18 21:16:07 2022 MSK

==== KCC CONNECTION OBJECTS ====

Connection --
Connection name: aaf6648f-7581-40ab-90a7-a6737f30a1da
Enabled : TRUE
Server DNS name : WIN-ADSERVER.trainzcity.myftp.org
Server DN name : CN=NTDS Settings,CN=WIN-ADSERVER,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=trainzcity,DC=myftp,DC=org
TransportType: RPC
options: 0x00000001
Warning: No NC replicated for Connection!
samba-tool ldapcmp ldap://win-adserver.trainzcity.myftp.org ldap://nix-adserver.trainzcity.myftp.org -UAdministrator
* Comparing [DOMAIN] context...

* Objects to be compared: 273

Comparing:
'CN=WIN-ADSERVER,OU=Domain Controllers,DC=trainzcity,DC=myftp,DC=org' [ldap://win-adserver.trainzcity.myftp.org]
'CN=WIN-ADSERVER,OU=Domain Controllers,DC=trainzcity,DC=myftp,DC=org' [ldap://nix-adserver.trainzcity.myftp.org]
Attributes found only in ldap://win-adserver.trainzcity.myftp.org:
msDS-GenerationId
FAILED

* Result for [DOMAIN]: FAILURE

SUMMARY
---------

Attributes found only in ldap://win-adserver.trainzcity.myftp.org:

msDS-GenerationId

* Comparing [CONFIGURATION] context...

* Objects to be compared: 1658

* Result for [CONFIGURATION]: SUCCESS

* Comparing [SCHEMA] context...

* Objects to be compared: 1770

* Result for [SCHEMA]: SUCCESS

* Comparing [DNSDOMAIN] context...

* Objects to be compared: 40

* Result for [DNSDOMAIN]: SUCCESS

* Comparing [DNSFOREST] context...

* Objects to be compared: 18

* Result for [DNSFOREST]: SUCCESS
ERROR: Compare failed: -1

What's the matter and why is the DNS server not working as expected? How to configure resolving?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question