BIND configuration & Computers with several network interfaces
Hello,
Thank you for reading my post. My question is about how to configure a DNS server in case some computers (on the LAN where the server in implanted) have several network interfaces. Situation in detail : 1) DEBIAN SERVER (S): runs a BIND and a DHCP servers. 2) LAN: some computers have several network interfaces. 3) A computer (C) has: - an Ethernet network interface (i1), - a wireless network interface (i2). (i1) has a static IP attached: w.x.y.z1 (i2) gets its IP via DHCP: w.x.y.z2 4) BIND SERVER: manages the zone files "db.my.zone" and "db.w.x.y". My question is the following: How do I have to configure the BIND server to take this situation into account? The idea behind my head: A standard record in "db.my.zone" is for instance: Code:
w.x.y.z1 A (C) Code:
w.x.y.z1 (C) (i1) Is it possible at all? What can you advise me to do? Thank you and best regards, -- Léa |
Well I'd say there's no such service as I don't see that there is a described service there in the first place. I would mainly advise against putting clients in DNS in the first place, it seems kind of pointless and a lot of hassle. But even outside of that, if they are not being populated by DHCP server updates, then what's to do? You just put in the variants of the hostname pc-wifi or pc-wired etc... against each IP. What bit is missing? In terms of DNS there's nowhere for this extra information you seem to be after other than in the hostname. Well, there are TXT records and the likes, but you'll surely not need that sort of stuff.
|
Hello acid_kewpie,
Thank you for your answer. Quote:
Quote:
Code:
1) both (i1) and (i2) are deactivated ; Quote:
If we activate first (i1) and then (i2), (i1) gets an associated record which is added to the zone files and then, if we activate the second interface (i2) the record adding fails with the messages: Code:
Updating zone 'zone.my/IN': update unsuccessful: (C).zone.my/TXT: 'RRset exists (value dependent)' prerequisite not satisfied (YXDOMAIN) Quote:
Quote:
So, I guess only one interface receives paquets from the network in case there is no additional human action (e.g. adding records to the zone files "a la mano"), isn't it? It's not an "issue" for a "classical" use... What if we want to load balance between two network interfaces on a same machine? Is it possible and how? What are the known techniques? Thank you and best regards, -- Léa |
Code:
If both network interfaces (i1) and (i2) are configured to receive their IP address via DHCP, only one record gets added to the forward and reverse zone files. |
Quote:
As I wrote earlier, if you add yourself two A records like the two below in a forward zone file, the server doesn't fail when you start it and you can successfully ping the two IP addresses afterwards: Code:
(C) A w.x.y.z1 |
you said in post #3 you're getting an error about updating the zone database.and when i see you error i realize that you configure ddns.
here's the problem.your first ethernet card updates its record with a unique hostname that's your machine name.and after that when your second ethernet card wants to update its record, named service realized that there's another entry in zone database with its hostname, but different ip address.so it updates the record with new ip address.that's why you have only one entry in zone database. |
If you manualy add the two A records for the host that gets two different ip adresses you configure something similar to round robin. Also the IP's point to the same server does not mean anything.
So your problem resides within ddns. I would dig on the part of the message with 'does not have a DHCID. not mine'. So in contrast to what devil says first come, first mark the second entry is ignored. Or see if you can configure the server to just 'do it' and not consider any existing records. As far as I remember you can also pass an identifier as the dhcp client. Maybe you can configure your server to do something depending on it. |
@devilboy09
Quote:
Quote:
@zhjim Quote:
The second entry is not ignored. If I ping (C), sometimes it responds with w.x.y.z1 and sometimes with w.x.y.z2... Quote:
- section interface "name" { declarations ... })... I don't obviously see how. But that's an interesting remark. Thanks! Best regards. |
Quote:
Maybe ignored is the wrong phrase but it does not take effect cause there already is a A record for that hostname. |
All times are GMT -5. The time now is 11:15 PM. |