Paul Littlefield
2018-Mar-10 10:16 UTC
[Samba] Delete second IP address from aipServerAddrs and aipListenAddrs DC
On 09/03/18 13:30, lingpanda101 via samba wrote:> On 3/9/2018 5:30 AM, Paul Littlefield via samba wrote: >> For some reason, the provision picked up 2 network IP addresses in my VM. >> >> Snipped output below... >> >> >> root at dc1.example.com ~ $ (screen) samba-tool dns serverinfo dc1 >> dwVersion : 0xece0205 >> fBootMethod : DNS_BOOT_METHOD_DIRECTORY >> fAdminConfigured : FALSE >> fAllowUpdate : TRUE >> fDsAvailable : TRUE >> pszServerName : DC1.example.com >> pszDsContainer : CN=MicrosoftDNS,DC=DomainDnsZones,DC=example,DC=com >> aipServerAddrs : ['192.168.122.8', '192.168.122.208'] >> aipListenAddrs : ['192.168.122.8', '192.168.122.208'] >> >> >> root at dc1.example.com ~ $ (screen) samba-tool dns query dc1 example.com @ ALL >> Name=, Records=4, Children=0 >> SOA: serial=149, refresh=900, retry=600, expire=86400, minttl=3600, ns=dc1.example.com., email=hostmaster.example.com. (flags=600000f0, serial=149, ttl=3600) >> NS: dc1.example.com. (flags=600000f0, serial=1, ttl=900) >> A: 192.168.122.208 (flags=600000f0, serial=1, ttl=900) >> A: 192.168.122.8 (flags=600000f0, serial=4, ttl=900) >> >> >> Is there a way to delete the second IP address from the DC LDAP database? >> >> Thanks. >> >> Paully >> >> >> > You should be able to manually set with the following command in your smb.conf file. > > interfaces > > Read the smb.conf man page for details but I would use the IP and not interface name. > >Alas no, that's not removing it from the LDAP Database. -- Paul Littlefield Telephone: 07801 125705 Email: info at paully.co.uk Wiki: http://wiki.indie-it.com/wiki/Special:AllPages LinkedIn: https://uk.linkedin.com/in/paullittlefield Paul Littlefield is environmentally responsible. Please consider the environment before printing this email. This email and any attachment is intended for the named addressee only, or person authorised to receive it on their behalf. The content should be treated as confidential and the recipient may not disclose this message or any attachment to anyone else without authorisation. If this transmission is received in error please notify the sender immediately and delete this message from your email system. All electronic transmissions to and from me are recorded and may be monitored. Finally, the recipient should check this email and any attachments for viruses. Paul Littlefield accepts no liability for any damage caused by any virus transmitted by this email. Ubuntu 16.04.3 LTS (x86_64)
Paul Littlefield
2018-Mar-10 11:14 UTC
[Samba] Delete second IP address from aipServerAddrs and aipListenAddrs DC
On 10/03/18 10:16, Paul Littlefield via samba wrote:> Alas no, that's not removing it from the LDAP Database.What about the Windows gui RSAT Tools? Can that get to the parts that the samba-tool command line cannot reach? :) Paul
lingpanda101
2018-Mar-13 19:09 UTC
[Samba] Delete second IP address from aipServerAddrs and aipListenAddrs DC
On 3/10/2018 5:16 AM, Paul Littlefield via samba wrote:> On 09/03/18 13:30, lingpanda101 via samba wrote: >> On 3/9/2018 5:30 AM, Paul Littlefield via samba wrote: >>> For some reason, the provision picked up 2 network IP addresses in >>> my VM. >>> >>> Snipped output below... >>> >>> >>> root at dc1.example.com ~ $ (screen) samba-tool dns serverinfo dc1 >>> dwVersion : 0xece0205 >>> fBootMethod : DNS_BOOT_METHOD_DIRECTORY >>> fAdminConfigured : FALSE >>> fAllowUpdate : TRUE >>> fDsAvailable : TRUE >>> pszServerName : DC1.example.com >>> pszDsContainer : >>> CN=MicrosoftDNS,DC=DomainDnsZones,DC=example,DC=com >>> aipServerAddrs : ['192.168.122.8', '192.168.122.208'] >>> aipListenAddrs : ['192.168.122.8', '192.168.122.208'] >>> >>> >>> root at dc1.example.com ~ $ (screen) samba-tool dns query dc1 >>> example.com @ ALL >>> Name=, Records=4, Children=0 >>> SOA: serial=149, refresh=900, retry=600, expire=86400, >>> minttl=3600, ns=dc1.example.com., email=hostmaster.example.com. >>> (flags=600000f0, serial=149, ttl=3600) >>> NS: dc1.example.com. (flags=600000f0, serial=1, ttl=900) >>> A: 192.168.122.208 (flags=600000f0, serial=1, ttl=900) >>> A: 192.168.122.8 (flags=600000f0, serial=4, ttl=900) >>> >>> >>> Is there a way to delete the second IP address from the DC LDAP >>> database? >>> >>> Thanks. >>> >>> Paully >>> >>> >>> >> You should be able to manually set with the following command in your >> smb.conf file. >> >> interfaces >> >> Read the smb.conf man page for details but I would use the IP and not >> interface name. >> >> > > Alas no, that's not removing it from the LDAP Database. > >You can try binding the interface in your smb.conf with the following. 'bind interfaces only = yes' Are you using bind or the internal DNS? I don't know how to edit this inside LDAP unfortunately. -- -- James
Paul Littlefield
2018-May-23 12:54 UTC
[Samba] Delete second IP address from aipServerAddrs and aipListenAddrs DC
On 13/03/18 19:09, lingpanda101 via samba wrote:> On 3/10/2018 5:16 AM, Paul Littlefield via samba wrote: >> On 09/03/18 13:30, lingpanda101 via samba wrote: >>> On 3/9/2018 5:30 AM, Paul Littlefield via samba wrote: >>>> For some reason, the provision picked up 2 network IP addresses in my VM. >>>> >>>> Snipped output below... >>>> >>>> >>>> root at dc1.example.com ~ $ (screen) samba-tool dns serverinfo dc1 >>>> dwVersion : 0xece0205 >>>> fBootMethod : DNS_BOOT_METHOD_DIRECTORY >>>> fAdminConfigured : FALSE >>>> fAllowUpdate : TRUE >>>> fDsAvailable : TRUE >>>> pszServerName : DC1.example.com >>>> pszDsContainer : CN=MicrosoftDNS,DC=DomainDnsZones,DC=example,DC=com >>>> aipServerAddrs : ['192.168.122.8', '192.168.122.208'] >>>> aipListenAddrs : ['192.168.122.8', '192.168.122.208'] >>>> >>>> >>>> root at dc1.example.com ~ $ (screen) samba-tool dns query dc1 example.com @ ALL >>>> Name=, Records=4, Children=0 >>>> SOA: serial=149, refresh=900, retry=600, expire=86400, minttl=3600, ns=dc1.example.com., email=hostmaster.example.com. (flags=600000f0, serial=149, ttl=3600) >>>> NS: dc1.example.com. (flags=600000f0, serial=1, ttl=900) >>>> A: 192.168.122.208 (flags=600000f0, serial=1, ttl=900) >>>> A: 192.168.122.8 (flags=600000f0, serial=4, ttl=900) >>>> >>>> >>>> Is there a way to delete the second IP address from the DC LDAP database? >>>> >>>> Thanks. >>>> >>>> Paully >>>> >>>> >>>> >>> You should be able to manually set with the following command in your smb.conf file. >>> >>> interfaces >>> >>> Read the smb.conf man page for details but I would use the IP and not interface name. >>> >>> >> >> Alas no, that's not removing it from the LDAP Database. >> >> > You can try binding the interface in your smb.conf with the following. > > 'bind interfaces only = yes' > > Are you using bind or the internal DNS? I don't know how to edit this inside LDAP unfortunately. >I have a rogue IP address that I no longer need in aipServerAddrs and aipListenAddrs. Has anyone managed to remove them using samba-tool or the RSAT gui tools? -- Paul Littlefield
Apparently Analagous Threads
- Delete second IP address from aipServerAddrs and aipListenAddrs DC
- Delete second IP address from aipServerAddrs and aipListenAddrs DC
- Delete second IP address from aipServerAddrs and aipListenAddrs DC
- samba-tool dns serverinfo
- samba-tool dns serverinfo command throws error