Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo and dynamic dns updating dhcp environments
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fraterm
n00b
n00b


Joined: 23 Apr 2002
Posts: 54
Location: Pflugerville, TX

PostPosted: Mon Aug 27, 2007 11:01 pm    Post subject: Gentoo and dynamic dns updating dhcp environments Reply with quote

At my job in real life, the network is administered by rabid microsoft early adopters (well not really, just run of the mill MCSE folks) and of course trying to run a linux box in the infrastructure is fraught with peril. Oddly enough, gentoos live cd at one time played well (or at least played) with their automatic dns update system.

Here's how things used to work:
    Client Boots,
    dhcp request sent,
    dhcp information is given to client,
    client is then expected to update DNS (PTR?) records with the hostname assigned. this is the sticky point
    you are happily on the network like a first class client, and your requested hostname is accessible from other machines as DNS updates fairly quickly.


Before a windows server 2003 rollout all worked somewhat peachily, with odd side effects occasionally, now there appears to be no way to get dhcpcd to update the records. The Microsofties here seem to think I may need to be added to the domain for things to behave normally. Does anyone know of a good modern account of how one would get this working again? Is this just the short time before someone reverse-engineers how M$ has managed to break their DHCP so as to be incompatible with anything non-microsoft?
_________________
What, me hurry?

Sitey sites:
http://fraterm.deviantart.com
http://www.approachzero.net
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue Aug 28, 2007 1:10 am    Post subject: Reply with quote

You need to enable "DHCP BROADCAST" on your client and/or your DHCP needs to know how to handle "DHCP BROADCAST". Look at this KB entry.

// SteveB
Back to top
View user's profile Send private message
fraterm
n00b
n00b


Joined: 23 Apr 2002
Posts: 54
Location: Pflugerville, TX

PostPosted: Sat Sep 15, 2007 6:12 pm    Post subject: Reply with quote

steveb wrote:
You need to enable "DHCP BROADCAST" on your client and/or your DHCP needs to know how to handle "DHCP BROADCAST". Look at this KB entry.

// SteveB


This is a linux client pointing at a Microsoft DHCP Server, the KB article seems to apply to Microsoft clients with Microsoft Servers.

Did you give me the right link?
_________________
What, me hurry?

Sitey sites:
http://fraterm.deviantart.com
http://www.approachzero.net
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sat Sep 15, 2007 6:27 pm    Post subject: Reply with quote

fraterm wrote:
Did you give me the right link?
No. I was thinking you had Vista pointing to Linux DHCP server. Sorry for that.

// SteveB
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Sep 15, 2007 9:53 pm    Post subject: Re: Gentoo and dynamic dns updating dhcp environments Reply with quote

fraterm wrote:
client is then expected to update DNS (PTR?) records with the hostname assigned. this is the sticky point


Yes, and no open source dhcp client does that. Why you ask? Because it's a security nightmare! Clients updating DNS? Meh!
The correct solution is for the DHCP server to update the DNS. Much more secure as they normally sit on the same box.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
fraterm
n00b
n00b


Joined: 23 Apr 2002
Posts: 54
Location: Pflugerville, TX

PostPosted: Tue Oct 02, 2007 3:24 am    Post subject: Re: Gentoo and dynamic dns updating dhcp environments Reply with quote

UberLord wrote:
fraterm wrote:
client is then expected to update DNS (PTR?) records with the hostname assigned. this is the sticky point


Yes, and no open source dhcp client does that. Why you ask? Because it's a security nightmare! Clients updating DNS? Meh!
The correct solution is for the DHCP server to update the DNS. Much more secure as they normally sit on the same box.


Hate to break it to you, but gentoos Dhcpcd *did* do it, with last years live CD. Not that it did it entirely correctly (because the DHCP implementation was probably not quite exactly matching what the earlier stew of Microsoft slop our IT department uses then either I suspect) but It did work. Oddly enough the way in which it failed exposed a flaw in the mechanism, as I'd snarf up an address that would belong to someone elses hostname, that hadn't gotten around to being auto-updated in the "infrastructure", but that's neither here nor there. It did work.

I have railed against the silliness of the system as well, but operational inertia is strong with Microsoft shops, IT doesn't listen to my critique of their design because it works just fine for them, and minimizes their need to update dns for managed AD clients themselves. It's not entirely a security nightmare either, all users are traceable (provided they are running windows) and managed strictly from a central location with AD. Linux (along with HPUX AIX and Solaris) is the red headed stepchild in this environment. I just want the stepchild to get a chance to eat at the dinner table by hook or by crook rather than being left in the cold.

I've gotten around this with a Static IP for the time being anyway, hopefully someone will get something to work again, or Microsoft will be forced to publish their specs for their technologies to the extent that interoperability is possible without running SuSe or something silly like that. I'd help if I knew what to look for or where to start.
_________________
What, me hurry?

Sitey sites:
http://fraterm.deviantart.com
http://www.approachzero.net
Back to top
View user's profile Send private message
Speen
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 118
Location: Herzogenrath, NRW, Germany

PostPosted: Thu Nov 15, 2007 10:26 pm    Post subject: Re: Gentoo and dynamic dns updating dhcp environments Reply with quote

Hi there,

sorry to ask, but was there ANY result?

I fully agree with UberLord. Clients should not be able to change any records.

I have a similar problem at work. (Windows Server some BSD & Linux Clients). I administrate the servers there. The non Windows clients are not submitting their hostname. The DHCP-server passes an empty record to the DNS-server, which causes the trouble (imho).

kind regards
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Nov 16, 2007 12:08 am    Post subject: Reply with quote

dhcpcd-3 will send it's hostname if it's not (none) or localhost
It's hostname is a FQDN then it will send it as a special FQDN, which MS DHCP server may be configured to expect.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum