Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127467 - networking rc scripts have no way to exploit nsupdate
Summary: networking rc scripts have no way to exploit nsupdate
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-24 11:59 UTC by Robert Forsman
Modified: 2006-03-26 13:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Forsman 2006-03-24 11:59:08 UTC
nsupdate is part of the bind-tools package which allows you to use standard DNS protocols to update the A and PTR records for your host.

Many people use the -h argument of dhcpcd to associate an A record with their hostname, but that does not actually work on my employer's network (maybe dhcpd and the name daemon aren't properly coupled)

I would like a way to specify that the networking system should use something like

nsupdate <<EOF
update delete $fqdn A
update add $fqdn $dhcp_lease_time A $ip
update add $inaddrarpa $dhcp_lease_time PTR $fqdn
send
EOF

on start, and just a delete on stop
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-25 00:56:48 UTC
Well, use /etc/conf.d/local.{start,stop} or fix your DHCP/DNS? :)
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-03-25 04:58:39 UTC
The problem is that your dhcp server is not updating the dns server. This is entirely a server side issue and I do not recommend the use of nsupdate at all.

The solution by Jakub is correct, but a better place would be in conf.d/net postup and predown functions.
Comment 3 Robert Forsman 2006-03-26 13:13:57 UTC
Aye, local.start/stop would not work because I bring that interface up and down anywhere from zero to five times in a day.

I can't fix the DHCP server because it's operated by a couple of overworked Windows drones.

I will look up the documentation and experiment with /etc/conf.d/net functions.