Author Topic: How to remove wrong DNS IP addres  (Read 955 times)

Kerni

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How to remove wrong DNS IP addres
« on: May 02, 2023, 11:55:07 am »
I have a DC contoller on Zentyal 7.
There I have 2 networks:
192.168.1.2 (192.168.1.0/24 - access for users)
10.1.1.2 (10.1.1.0/24 - config network.)

When the host trying to get access to DC (dns request, login credentials) its take a long time. I guess it is because he is trying to contact with address 10.1.1.2 instead of  192.168.1.2.

nslookup say:

nslookup dc1
Server:  dc1.test.local
Address:  192.168.1.2

Name:    dc1.test.local
Addresses:  10.1.1.2
          192.168.1.2

Ho can I remove addres 10.1.1.2 from DNS. I tried do it via www interface DNS->Domains->Domain IP Address but it doesn't work.

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: How to remove wrong DNS IP addres
« Reply #1 on: May 02, 2023, 03:43:35 pm »
You can delete any record using samba-tool command as the below link explains:

* https://wiki.samba.org/index.php/DNS_Administration#Delete_a_record

An example:

Code: [Select]
sudo samba-tool dns delete 127.0.0.1 test.local dc01 A 10.1.1.2 -U administrator

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

Kerni

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: How to remove wrong DNS IP addres
« Reply #2 on: May 03, 2023, 05:30:52 pm »
Thank you for replay.
I tried to do as you suggest.

After command:
Code: [Select]
sudo samba-tool dns delete [...]
comannd nslookup show only 1 address.
In a strange way, the old setting came back in dozen minutes or direct after reboot the serwer.
Than I have again two addresses after nslookup command.

Any suggest to save this settings pernamently?
« Last Edit: May 05, 2023, 11:51:12 am by Kerni »