Discussion:
[Samba] Multiple IP addresses in DNS record
(too old to reply)
Jarrod Hyder
2008-10-21 17:50:16 UTC
Permalink
I have a samba server running on Linux that has two ethernet cards (eth0 &
eth1) that are bonded into a single virtual interface (bond0). This virtual
interface is connected to the corporate LAN and I have another ethernet card
(eth2) that is connected to another server that is used for making
incremental backups. The problem that I am having is that no matter what I
do, the command "net ads dns register -P' causes both the bond0 and eth2 IP
addresses to show up in the DNS record on the corporate domain controller.

I have tried to force samba and winbind to use "interface = bond0" and
"bind interfaces only = yes" and it doesn't seem to help this situation.

If anyone can shed some light on what I am doing wrong, I would really
appreciate it.

BTW, I am using samba 3.0.28a

--
Jarrod Hyder
***@gmail.com
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Frank Gruman
2008-10-22 01:20:09 UTC
Permalink
Post by Jarrod Hyder
I have a samba server running on Linux that has two ethernet cards (eth0 &
eth1) that are bonded into a single virtual interface (bond0). This virtual
interface is connected to the corporate LAN and I have another ethernet card
(eth2) that is connected to another server that is used for making
incremental backups. The problem that I am having is that no matter what I
do, the command "net ads dns register -P' causes both the bond0 and eth2 IP
addresses to show up in the DNS record on the corporate domain controller.
I have tried to force samba and winbind to use "interface = bond0" and
"bind interfaces only = yes" and it doesn't seem to help this situation.
If anyone can shed some light on what I am doing wrong, I would really
appreciate it.
BTW, I am using samba 3.0.28a
--
Jarrod Hyder
Jarrod,

Not sure how much help I can be, but give this a try - add the -d # flag
to your 'net ads dns ...' command where # can be something up to 10
(more debug output). This can at the very least confirm the smb.conf
file being read as well as perhaps point you in a better direction. If
nothing else, posted the somewhat cleansed output here; it may help
others here to see where your problem lies.



Regards,
Frank
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Gerald (Jerry) Carter
2008-10-22 13:20:15 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here is the debug output of "net ads dns register -P -d 10". I can't really
make heads or tails of it, but I also don't see either of the IP addresses
that are getting registered on the domain. If you could take a look at it I
would really appreciate it.
I fixed a bug recently that prevently :"net ads dns register" from
honoring the "interfaces" line in smb.conf. The fixed only went
in to the v3.2 and later branches. If you need a backport to the 3.0
tree, let me know.




cheer,s jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI/yaUIR7qMdg1EfYRArWFAKDUbRvPLVz7e70/S9HRcz/1f1wJsgCgp3Qf
ZZ/rUYun154UpKG6uCTKL30=
=aK5G
-----END PGP SIGNATURE-----
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Frank Gruman
2008-10-22 15:40:13 UTC
Permalink
Post by Frank Gruman
Post by Jarrod Hyder
I have a samba server running on Linux that has two ethernet cards (eth0 &
eth1) that are bonded into a single virtual interface (bond0). This virtual
interface is connected to the corporate LAN and I have another ethernet card
(eth2) that is connected to another server that is used for making
incremental backups. The problem that I am having is that no matter what I
do, the command "net ads dns register -P' causes both the bond0 and eth2 IP
addresses to show up in the DNS record on the corporate domain controller.
I have tried to force samba and winbind to use "interface = bond0" and
"bind interfaces only = yes" and it doesn't seem to help this situation.
If anyone can shed some light on what I am doing wrong, I would really
appreciate it.
BTW, I am using samba 3.0.28a
--
Jarrod Hyder
Jarrod,
Not sure how much help I can be, but give this a try - add the
-d # flag to your 'net ads dns ...' command where # can be
something up to 10 (more debug output). This can at the very
least confirm the smb.conf file being read as well as perhaps
point you in a better direction. If nothing else, posted the
somewhat cleansed output here; it may help others here to see
where your problem lies.
Regards,
Frank
Frank,
Here is the debug output of "net ads dns register -P -d 10". I can't
really make heads or tails of it, but I also don't see either of the
IP addresses that are getting registered on the domain. If you could
take a look at it I would really appreciate it.
Thanks,
--
Jarrod Hyder
<snip>
Post by Frank Gruman
[2008/10/22 07:46:06, 5] lib/util.c:init_names(309)
Netbios name list:-
my_netbios_names[0]="SERVER"
[2008/10/22 07:46:06, 2] lib/interface.c:add_interface(81)
added interface ip=xxx.yyy.xxx.yyy bcast=xxx.yyy.xxx.255 nmask=255.255.255.0
[2008/10/22 07:46:06, 5] lib/gencache.c:gencache_init(61)
Opening cache file at /var/lib/samba/gencache.tdb
</snip>

Jarrod,

The above snip was the line I was looking for, and had been hoping to
see more than one line added. Meanwhile, back at the ranch, I see that
Jerry has already responded that this was a bug that was fixed.

Regards,
Frank
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Jarrod Hyder
2008-10-25 13:00:16 UTC
Permalink
Post by Frank Gruman
Post by Jarrod Hyder
I have a samba server running on Linux that has two ethernet cards (eth0 &
eth1) that are bonded into a single virtual interface (bond0). This virtual
interface is connected to the corporate LAN and I have another ethernet card
(eth2) that is connected to another server that is used for making
incremental backups. The problem that I am having is that no matter what I
do, the command "net ads dns register -P' causes both the bond0 and eth2 IP
addresses to show up in the DNS record on the corporate domain controller.
I have tried to force samba and winbind to use "interface = bond0" and
"bind interfaces only = yes" and it doesn't seem to help this situation.
If anyone can shed some light on what I am doing wrong, I would really
appreciate it.
BTW, I am using samba 3.0.28a
--
Jarrod Hyder
Jarrod,
Not sure how much help I can be, but give this a try - add the
-d # flag to your 'net ads dns ...' command where # can be
something up to 10 (more debug output). This can at the very
least confirm the smb.conf file being read as well as perhaps
point you in a better direction. If nothing else, posted the
somewhat cleansed output here; it may help others here to see
where your problem lies.
Regards,
Frank
Frank,
Here is the debug output of "net ads dns register -P -d 10". I can't
really make heads or tails of it, but I also don't see either of the
IP addresses that are getting registered on the domain. If you could
take a look at it I would really appreciate it.
Thanks,
--
Jarrod Hyder
Jerry,

If you could create a patch for 3.0.28a that would be great.

Our server is running an older distro and I'm not sure when I would have
time to try to compile 3.2. I think if I could patch the source for the
version we are currently using and recompile it, I would be better off.

Thanks!

--
Jarrod Hyder
***@gmail.com
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Loading...